1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Resource, ResourceKind, ResourceWithProperties } 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, ResourceWithProperties {
17 kind: ResourceKind.CONTAINER_REQUEST;
20 state: ContainerRequestState;
21 requestingContainerUuid: string | null;
22 containerUuid: string | null;
23 containerCountMax: number;
24 mounts: {[path: string]: MountType};
25 runtimeConstraints: RuntimeConstraints;
26 schedulingParameters: SchedulingParameters;
27 containerImage: string;
34 priority: number | null;
37 logUuid: string | null;
38 outputUuid: string | null;
40 containerCount: number;