Skip to content

Commit

Permalink
Check version compatibility of manager
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Nov 16, 2024
1 parent 45b1d01 commit 1dc7143
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
8 changes: 6 additions & 2 deletions src/components/backend-ai-edu-applauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ export default class BackendAiEduApplauncher extends BackendAIPage {
globalThis.backendaiclient.supports('prepared-session-status')
? 'PREPARED'
: undefined,
'CREATING',
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
]
.filter((v) => !!v)
Expand All @@ -275,7 +277,9 @@ export default class BackendAiEduApplauncher extends BackendAIPage {
globalThis.backendaiclient.supports('prepared-session-status')
? 'PREPARED'
: undefined,
'CREATING',
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
]
.filter((v) => !!v)
Expand Down
14 changes: 6 additions & 8 deletions src/components/backend-ai-session-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,9 @@ export default class BackendAISessionList extends BackendAIPage {
'TERMINATING',
'PENDING',
'SCHEDULED',
'PREPARED',
'CREATING',
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
'ERROR',
];
Expand All @@ -779,12 +780,9 @@ export default class BackendAISessionList extends BackendAIPage {
'TERMINATING',
'PENDING',
'SCHEDULED',
<<<<<<< HEAD
'PREPARING',
=======
'PREPARED',
'CREATING',
>>>>>>> 035be307 (feat: Replace PREPARING status to CREATING)
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
];
if (globalThis.backendaiclient.supports('prepared-session-status')) {
Expand Down
10 changes: 6 additions & 4 deletions src/components/backend-ai-session-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,9 @@ export default class BackendAISessionView extends BackendAIPage {
'TERMINATING',
'PENDING',
'SCHEDULED',
'PREPARED',
'CREATING',
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
'TERMINATED',
'CANCELLED',
Expand All @@ -347,8 +348,9 @@ export default class BackendAISessionView extends BackendAIPage {
'RESTARTING',
'TERMINATING',
'PENDING',
'PREPARED',
'CREATING',
globalThis.backendaiclient.supports('replace-preparing-to-creating')
? 'CREATING'
: 'PREPARING',
'PULLING',
'TERMINATED',
'CANCELLED',
Expand Down
1 change: 1 addition & 0 deletions src/lib/backend.ai-client-esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ class Client {
this._features['extended-image-info'] = true;
this._features['batch-timeout'] = true;
this._features['prepared-session-status'] = true;
this._features['replace-preparing-to-creating'] = true;
}
}

Expand Down

0 comments on commit 1dc7143

Please sign in to comment.