Files
nomad/ui/app/utils/allocation-client-statuses.js
Phil Renaud c33fc33441 [ui] Batch jobs, aside from child jobs, get the new status panel (#17118)
* Batch jobs, aside from child jobs, get the new status panel

* Clean up the imported jobAllocStatuses

* Note for mirage that batch jobs now have a historical status panel

* Batch job test for complete status

* Parameterized and periodic child jobs get the panel treatment

* Undo parameterized and periodic child test situations
2023-05-10 16:59:33 -04:00

18 lines
541 B
JavaScript

// @ts-check
/**
* @typedef {('running' | 'pending' | 'failed' | 'lost' | 'complete' | 'unplaced')[]} AllocationClientStatuses
* @typedef {Object.<string, AllocationClientStatuses>} JobAllocStatuses
*/
/**
* @type {JobAllocStatuses}
*/
export const jobAllocStatuses = {
service: ['running', 'pending', 'failed', 'lost', 'unplaced'],
system: ['running', 'pending', 'failed', 'lost', 'unplaced'],
batch: ['running', 'pending', 'failed', 'lost', 'complete', 'unplaced'],
};
export const jobTypes = ['service', 'system', 'batch'];