19231: Add smaller page sizes (10 and 20 items) to load faster
[arvados-workbench2.git] / src / models / container.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource, ResourceKind } from "./resource";
6 import { MountType } from 'models/mount-types';
7 import { RuntimeConstraints } from "models/runtime-constraints";
8 import { SchedulingParameters } from './scheduling-parameters';
9 import { RuntimeStatus } from "./runtime-status";
10
11 export enum ContainerState {
12     QUEUED = 'Queued',
13     LOCKED = 'Locked',
14     RUNNING = 'Running',
15     COMPLETE = 'Complete',
16     CANCELLED = 'Cancelled',
17 }
18
19 export interface ContainerResource extends Resource {
20     kind: ResourceKind.CONTAINER;
21     state: string;
22     startedAt: string | null;
23     finishedAt: string | null;
24     log: string | null;
25     environment: {};
26     cwd: string;
27     command: string[];
28     outputPath: string;
29     mounts: MountType[];
30     runtimeConstraints: RuntimeConstraints;
31     runtimeStatus: RuntimeStatus;
32     schedulingParameters: SchedulingParameters;
33     output: string | null;
34     containerImage: string;
35     progress: number;
36     priority: number;
37     exitCode: number | null;
38     authUuid: string | null;
39     lockedByUuid: string | null;
40 }