1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Resource, ResourceKind } from "./resource";
6 import { MountType } from "~/models/mount-types";
7 import { RuntimeConstraints } from './runtime-constraints';
8 import { SchedulingParameters } from './scheduling-parameters';
10 export enum ContainerRequestState {
11 UNCOMMITTED = "Uncommitted",
12 COMMITTED = "Committed",
16 export interface ContainerRequestResource extends Resource {
17 kind: ResourceKind.CONTAINER_REQUEST;
21 state: ContainerRequestState;
22 requestingContainerUuid: string | null;
23 containerUuid: string | null;
24 containerCountMax: number;
25 mounts: {[path: string]: MountType};
26 runtimeConstraints: RuntimeConstraints;
27 schedulingParameters: SchedulingParameters;
28 containerImage: string;
35 priority: number | null;
38 logUuid: string | null;
39 outputUuid: string | null;
41 containerCount: number;