mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
fix(api): fixed condition in processProgram
This commit is contained in:
@@ -49,7 +49,7 @@ export const processProgram = async (
|
|||||||
await moveFile(codePath + '.bkp', codePath)
|
await moveFile(codePath + '.bkp', codePath)
|
||||||
|
|
||||||
// we now need to poll the session status
|
// we now need to poll the session status
|
||||||
while (session.state === SessionState.completed) {
|
while (session.state !== SessionState.completed) {
|
||||||
await delay(50)
|
await delay(50)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export enum SessionState {
|
export enum SessionState {
|
||||||
initialising = 'initialising', // session is initialising and nor ready to be used yet
|
initialising = 'initialising', // session is initialising and not ready to be used yet
|
||||||
pending = 'pending', // session is ready to be used
|
pending = 'pending', // session is ready to be used
|
||||||
running = 'running', // session is in use
|
running = 'running', // session is in use
|
||||||
completed = 'completed', // session is completed and can be destroyed
|
completed = 'completed', // session is completed and can be destroyed
|
||||||
|
|||||||
Reference in New Issue
Block a user