mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
24 lines
709 B
JavaScript
24 lines
709 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
// @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', 'complete', 'failed', 'lost', 'unplaced'],
|
|
sysbatch: ['running', 'pending', 'complete', 'failed', 'lost', 'unplaced'],
|
|
};
|
|
|
|
export const jobTypes = ['service', 'system', 'batch', 'sysbatch'];
|