-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff McMillen
authored and
Jeff McMillen
committed
Dec 6, 2024
1 parent
7cbe3a6
commit 3ef04df
Showing
2 changed files
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,57 @@ | ||
import { | ||
TTapisSystem, | ||
TAppFileInput, | ||
TTapisJob, | ||
TJobArgSpecs, | ||
TJobKeyValuePair, | ||
TTapisSystem, | ||
TAppFileInput, | ||
TTapisJob, | ||
TJobArgSpecs, | ||
TJobKeyValuePair, | ||
} from 'utils/types'; | ||
|
||
export type TJobPostOperations = 'resubmitJob' | 'cancelJob' | 'submitJob'; | ||
|
||
export type TParameterSetSubmit = { | ||
appArgs?: TJobArgSpecs; | ||
containerArgs?: TJobArgSpecs; | ||
schedulerOptions?: TJobArgSpecs; | ||
envVariables?: TJobKeyValuePair[]; | ||
appArgs?: TJobArgSpecs; | ||
containerArgs?: TJobArgSpecs; | ||
schedulerOptions?: TJobArgSpecs; | ||
envVariables?: TJobKeyValuePair[]; | ||
}; | ||
|
||
export type TConfigurationValues = { | ||
execSystemId?: string; | ||
execSystemLogicalQueue?: string; | ||
maxMinutes?: number; | ||
nodeCount?: number; | ||
coresPerNode?: number; | ||
allocation?: string; | ||
memoryMB?: number; | ||
execSystemId?: string; | ||
execSystemLogicalQueue?: string; | ||
maxMinutes?: number; | ||
nodeCount?: number; | ||
coresPerNode?: number; | ||
allocation?: string; | ||
memoryMB?: number; | ||
}; | ||
|
||
export type TOutputValues = { | ||
name: string; | ||
archiveSystemId?: string; | ||
archiveSystemDir?: string; | ||
name: string; | ||
archiveSystemId?: string; | ||
archiveSystemDir?: string; | ||
}; | ||
|
||
export interface TJobSubmit extends TConfigurationValues, TOutputValues { | ||
archiveOnAppError?: boolean; | ||
appId: string; | ||
fileInputs?: TAppFileInput[]; | ||
parameterSet?: TParameterSetSubmit; | ||
}; | ||
archiveOnAppError?: boolean; | ||
appId: string; | ||
fileInputs?: TAppFileInput[]; | ||
parameterSet?: TParameterSetSubmit; | ||
} | ||
|
||
export type TJobBody = { | ||
operation?: TJobPostOperations; | ||
uuid?: string; | ||
job: TJobSubmit; | ||
licenseType?: string; | ||
isInteractive?: boolean; | ||
execSystemId?: string; | ||
operation?: TJobPostOperations; | ||
uuid?: string; | ||
job: TJobSubmit; | ||
licenseType?: string; | ||
isInteractive?: boolean; | ||
execSystemId?: string; | ||
}; | ||
|
||
export interface IJobPostResponse extends TTapisJob { | ||
execSys?: TTapisSystem; | ||
execSys?: TTapisSystem; | ||
} | ||
|
||
export type TJobPostResponse = { | ||
response: IJobPostResponse; | ||
status: number; | ||
response: IJobPostResponse; | ||
status: number; | ||
}; | ||
|