github.com/hernad/nomad@v1.6.112/ui/app/utils/allocation-client-statuses.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  // @ts-check
     7  
     8  /**
     9   * @typedef {('running' | 'pending' | 'failed' | 'lost' | 'complete' | 'unplaced')[]} AllocationClientStatuses
    10   * @typedef {Object.<string, AllocationClientStatuses>} JobAllocStatuses
    11   */
    12  
    13  /**
    14   * @type {JobAllocStatuses}
    15   */
    16  export const jobAllocStatuses = {
    17    service: ['running', 'pending', 'failed', 'lost', 'unplaced'],
    18    system: ['running', 'pending', 'failed', 'lost', 'unplaced'],
    19    batch: ['running', 'pending', 'complete', 'failed', 'lost', 'unplaced'],
    20    sysbatch: ['running', 'pending', 'complete', 'failed', 'lost', 'unplaced'],
    21  };
    22  
    23  export const jobTypes = ['service', 'system', 'batch', 'sysbatch'];