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 cumulativeCost: number;
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;