diff --git a/react/src/components/ComputeSessionNodeItems/SessionActionButtons.tsx b/react/src/components/ComputeSessionNodeItems/SessionActionButtons.tsx index 12383ff87c..40aaf2d4e0 100644 --- a/react/src/components/ComputeSessionNodeItems/SessionActionButtons.tsx +++ b/react/src/components/ComputeSessionNodeItems/SessionActionButtons.tsx @@ -34,7 +34,7 @@ const isActive = (session: SessionActionButtonsFragment$data) => { // 'RESTARTING', // 'TERMINATING', // 'PENDING', -// 'PREPARING', +// 'CREATING', // 'PULLING', // ].includes(session?.status || ''); // }; diff --git a/react/src/components/ComputeSessionNodeItems/SessionStatusTag.tsx b/react/src/components/ComputeSessionNodeItems/SessionStatusTag.tsx index bc1c7291d2..2b3d5fc3ba 100644 --- a/react/src/components/ComputeSessionNodeItems/SessionStatusTag.tsx +++ b/react/src/components/ComputeSessionNodeItems/SessionStatusTag.tsx @@ -17,7 +17,7 @@ const statusTagColor = { //prepare RESTARTING: 'blue', PREPARED: 'blue', - PREPARING: 'blue', + CREATING: 'blue', PULLING: 'blue', //running RUNNING: 'green', @@ -33,7 +33,7 @@ const isTransitional = (session: SessionStatusTagFragment$data) => { 'RESTARTING', 'TERMINATING', 'PENDING', - 'PREPARING', + 'CREATING', 'PULLING', ].includes(session?.status || ''); }; diff --git a/react/src/components/SessionList.tsx b/react/src/components/SessionList.tsx index 349f80ba60..c59e820bfc 100644 --- a/react/src/components/SessionList.tsx +++ b/react/src/components/SessionList.tsx @@ -116,7 +116,7 @@ const SessionList: React.FC = ({ //prepare RESTARTING: 'blue', PREPARED: 'blue', - PREPARING: 'blue', + CREATING: 'blue', PULLING: 'blue', //running RUNNING: 'green', diff --git a/react/src/components/SessionListColums/SessionInfoCell.tsx b/react/src/components/SessionListColums/SessionInfoCell.tsx index 717679a27b..ad75b1e58e 100644 --- a/react/src/components/SessionListColums/SessionInfoCell.tsx +++ b/react/src/components/SessionListColums/SessionInfoCell.tsx @@ -21,13 +21,13 @@ const isRunningStatus = (status: string = '') => { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', ].includes(status); }; const isPreparing = (status: string = '') => { - return ['RESTARTING', 'PREPARED', 'PREPARING', 'PULLING'].includes(status); + return ['RESTARTING', 'PREPARED', 'CREATING', 'PULLING'].includes(status); }; const SessionInfoCell: React.FC<{ diff --git a/react/src/pages/SessionListPage.tsx b/react/src/pages/SessionListPage.tsx index 303827e530..b2936a9cd8 100644 --- a/react/src/pages/SessionListPage.tsx +++ b/react/src/pages/SessionListPage.tsx @@ -16,7 +16,7 @@ const RUNNINGS = [ 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', ]; const TAB_STATUS_MAP = { diff --git a/src/components/backend-ai-edu-applauncher.ts b/src/components/backend-ai-edu-applauncher.ts index 6b94d767d1..7ce9c78586 100644 --- a/src/components/backend-ai-edu-applauncher.ts +++ b/src/components/backend-ai-edu-applauncher.ts @@ -259,7 +259,7 @@ export default class BackendAiEduApplauncher extends BackendAIPage { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', ].join(','); } else { @@ -269,7 +269,7 @@ export default class BackendAiEduApplauncher extends BackendAIPage { 'TERMINATING', 'PENDING', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', ].join(','); } diff --git a/src/components/backend-ai-session-list.ts b/src/components/backend-ai-session-list.ts index 23b511feb8..4861c76af8 100644 --- a/src/components/backend-ai-session-list.ts +++ b/src/components/backend-ai-session-list.ts @@ -578,12 +578,7 @@ export default class BackendAISessionList extends BackendAIPage { } _isPreparing(status) { - const preparingStatuses = [ - 'RESTARTING', - 'PREPARED', - 'PREPARING', - 'PULLING', - ]; + const preparingStatuses = ['RESTARTING', 'PREPARED', 'CREATING', 'PULLING']; if (preparingStatuses.indexOf(status) === -1) { return false; } @@ -766,7 +761,7 @@ export default class BackendAISessionList extends BackendAIPage { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', 'ERROR', ]; @@ -782,7 +777,7 @@ export default class BackendAISessionList extends BackendAIPage { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', ]; } diff --git a/src/components/backend-ai-session-view.ts b/src/components/backend-ai-session-view.ts index 09531dac95..79044e54cd 100644 --- a/src/components/backend-ai-session-view.ts +++ b/src/components/backend-ai-session-view.ts @@ -335,7 +335,7 @@ export default class BackendAISessionView extends BackendAIPage { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', 'TERMINATED', 'CANCELLED', @@ -348,7 +348,7 @@ export default class BackendAISessionView extends BackendAIPage { 'TERMINATING', 'PENDING', 'PREPARED', - 'PREPARING', + 'CREATING', 'PULLING', 'TERMINATED', 'CANCELLED', diff --git a/src/lib/backend.ai-client-es6.js b/src/lib/backend.ai-client-es6.js index 0ebf588708..2f1bd5d65a 100644 --- a/src/lib/backend.ai-client-es6.js +++ b/src/lib/backend.ai-client-es6.js @@ -32471,7 +32471,7 @@ 'occupied_slots', 'containers {live_stat last_stat}', ], - e = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,PREPARING,PULLING,TERMINATED,CANCELLED,ERROR', + e = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,CREATING,PULLING,TERMINATED,CANCELLED,ERROR', i = '', r = 100, n = 0, diff --git a/src/lib/backend.ai-client-esm.ts b/src/lib/backend.ai-client-esm.ts index 536da6ea57..813a9ec276 100644 --- a/src/lib/backend.ai-client-esm.ts +++ b/src/lib/backend.ai-client-esm.ts @@ -2799,7 +2799,7 @@ class Agent { /** * List computation agents. * - * @param {string} status - Status to query. Should be one of 'ALIVE', 'PREPARING', 'TERMINATING' and 'TERMINATED'. + * @param {string} status - Status to query. Should be one of 'ALIVE', 'CREATING', 'TERMINATING' and 'TERMINATED'. * @param {array} fields - Fields to query. Queryable fields are: 'id', 'status', 'region', 'first_contact', 'cpu_cur_pct', 'mem_cur_bytes', 'available_slots', 'occupied_slots'. * @param {number} timeout - timeout for the request. Default uses SDK default. (5 sec.) */ @@ -2873,7 +2873,7 @@ class AgentSummary { /** * List of agent summary. * - * @param {string} status - Status to query. Should be one of 'ALIVE', 'PREPARING', 'TERMINATING' and 'TERMINATED'. + * @param {string} status - Status to query. Should be one of 'ALIVE', 'CREATING', 'TERMINATING' and 'TERMINATED'. * @param {array} fields - Fields to query. Queryable fields are: id, status, scaling_group, schedulable, schedulable, available_slots, occupied_slots. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -3603,7 +3603,7 @@ class ComputeSession { * Get the number of compute sessions with specific conditions. * * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -3641,7 +3641,7 @@ class ComputeSession { * * @param {array} fields - fields to query. Default fields are: ["id", "name", "image", "created_at", "terminated_at", "status", "status_info", "occupied_slots", "cpu_used", "io_read_bytes", "io_write_bytes"]. * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -3713,7 +3713,7 @@ class ComputeSession { 'occupied_slots', 'containers {live_stat last_stat}', ], - status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,PREPARING,PULLING,TERMINATED,CANCELLED,ERROR', + status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,CREATING,PULLING,TERMINATED,CANCELLED,ERROR', accessKey = '', limit = 100, offset = 0, diff --git a/src/lib/backend.ai-client-node.js b/src/lib/backend.ai-client-node.js index e37863dc3c..c95549f374 100644 --- a/src/lib/backend.ai-client-node.js +++ b/src/lib/backend.ai-client-node.js @@ -2148,7 +2148,7 @@ class Agent { /** * List computation agents. * - * @param {string} status - Status to query. Should be one of 'ALIVE', 'PREPARING', 'TERMINATING' and 'TERMINATED'. + * @param {string} status - Status to query. Should be one of 'ALIVE', 'CREATING', 'TERMINATING' and 'TERMINATED'. * @param {array} fields - Fields to query. Queryable fields are: 'id', 'status', 'region', 'first_contact', 'cpu_cur_pct', 'mem_cur_bytes', 'available_slots', 'occupied_slots'. * @param {number} timeout - timeout for the request. Default uses SDK default. (5 sec.) */ @@ -2824,7 +2824,7 @@ class ComputeSession { * Get the number of compute sessions with specific conditions. * * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -2861,7 +2861,7 @@ class ComputeSession { * * @param {array} fields - fields to query. Default fields are: ["id", "name", "image", "created_at", "terminated_at", "status", "status_info", "occupied_slots", "cpu_used", "io_read_bytes", "io_write_bytes"]. * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -2932,7 +2932,7 @@ class ComputeSession { 'occupied_slots', 'containers {live_stat last_stat}', ], - status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,PREPARING,PULLING,TERMINATED,CANCELLED,ERROR', + status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,CREATING,PULLING,TERMINATED,CANCELLED,ERROR', accessKey = '', limit = 100, offset = 0, @@ -3039,7 +3039,7 @@ class SessionTemplate { * * @param {array} fields - fields to query. Default fields are: ["id", "name", "image", "created_at", "terminated_at", "status", "status_info", "occupied_slots", "cpu_used", "io_read_bytes", "io_write_bytes"]. * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`,`PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`,`PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. diff --git a/src/lib/backend.ai-client-node.ts b/src/lib/backend.ai-client-node.ts index 519b390283..620864772f 100644 --- a/src/lib/backend.ai-client-node.ts +++ b/src/lib/backend.ai-client-node.ts @@ -2363,7 +2363,7 @@ class Agent { /** * List computation agents. * - * @param {string} status - Status to query. Should be one of 'ALIVE', 'PREPARING', 'TERMINATING' and 'TERMINATED'. + * @param {string} status - Status to query. Should be one of 'ALIVE', 'CREATING', 'TERMINATING' and 'TERMINATED'. * @param {array} fields - Fields to query. Queryable fields are: 'id', 'status', 'region', 'first_contact', 'cpu_cur_pct', 'mem_cur_bytes', 'available_slots', 'occupied_slots'. * @param {number} timeout - timeout for the request. Default uses SDK default. (5 sec.) */ @@ -3074,7 +3074,7 @@ class ComputeSession { * Get the number of compute sessions with specific conditions. * * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -3112,7 +3112,7 @@ class ComputeSession { * * @param {array} fields - fields to query. Default fields are: ["id", "name", "image", "created_at", "terminated_at", "status", "status_info", "occupied_slots", "cpu_used", "io_read_bytes", "io_write_bytes"]. * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`, `PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. @@ -3184,7 +3184,7 @@ class ComputeSession { 'occupied_slots', 'containers {live_stat last_stat}', ], - status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,PREPARING,PULLING,TERMINATED,CANCELLED,ERROR', + status = 'RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,CREATING,PULLING,TERMINATED,CANCELLED,ERROR', accessKey = '', limit = 100, offset = 0, @@ -3300,7 +3300,7 @@ class SessionTemplate { * * @param {array} fields - fields to query. Default fields are: ["id", "name", "image", "created_at", "terminated_at", "status", "status_info", "occupied_slots", "cpu_used", "io_read_bytes", "io_write_bytes"]. * @param {string or array} status - status to query. Default is 'RUNNING'. - * Available statuses are: `PREPARING`, `BUILDING`,`PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. + * Available statuses are: `CREATING`, `BUILDING`,`PENDING`, `SCHEDULED`, `RUNNING`, `RESTARTING`, `RESIZING`, `SUSPENDED`, `TERMINATING`, `TERMINATED`, `ERROR`. * @param {string} accessKey - access key that is used to start compute sessions. * @param {number} limit - limit number of query items. * @param {number} offset - offset for item query. Useful for pagination. diff --git a/src/pipeline/components/pipeline-job-list.ts b/src/pipeline/components/pipeline-job-list.ts index e2c7676fe2..08c937c47b 100644 --- a/src/pipeline/components/pipeline-job-list.ts +++ b/src/pipeline/components/pipeline-job-list.ts @@ -299,7 +299,7 @@ export default class PipelineJobList extends BackendAIPage { 'PENDING', 'SCHEDULED', 'PREPARED', - 'PREPARING', + 'CREATING', 'BUILDING', 'PULLING', 'RUNNING', diff --git a/src/pipeline/lib/pipeline-utils.ts b/src/pipeline/lib/pipeline-utils.ts index 84e572cb91..27a0b943b5 100644 --- a/src/pipeline/lib/pipeline-utils.ts +++ b/src/pipeline/lib/pipeline-utils.ts @@ -107,7 +107,7 @@ export default class PipelineUtils extends LitElement { case 'PULLING': case 'SCHEDULED': case 'PREPARED': - case 'PREPARING': + case 'CREATING': case 'PENDING': color = 'yellow'; break;