mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
* 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
18 lines
541 B
JavaScript
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'];
|