CreateJob
CCS-job-1003 Create job
Header Parameters
- x-api-host string required
Default value:
k8s-D-twcc
Authentication Required Parameters
- application/json
Request Body required
Request body
- callback string
自動停止任務的迴叫網址,預設為空
- first_submit boolean
自動運行任務旗標,預設為否
- name string required
Job name
- project int64 required
Project ID
- schedule string
Run the job periodically with Cron format
- tag string
過濾用任務標籤,預設為空
- type string required
Possible values: [
KUBERNETES:DOCKER
]Job type
steps object[] required
stepname string requiredStep name
availability_zone stringJob
dependency_policy stringPossible values: [
AFTEROK
,AFTERNOTOK
,AFTERANY
]The policy of the dependency
command stringThe command need to be executed in the image
env object
Task container environment variables, the default is {}
image string requiredThe image used for this step
flavor int32 requiredFlavor ID
runs int32How many concurrent runs should be lauched at once
slots int32How many slotPerWorker should be lauched in single mpi worker
volumes object[]
server stringThe hostname or IP address of an NFS server.(This value takes effect only on the type NFS)
path stringmount source(This value takes effect on the types NFS and HOSTPATH)
subpath stringsubpath mount source(This value takes effect on HOSTPATH)
mountPath string requiredmount destination
type string requiredPossible values: [
HOSTPATH
,NFS
,CEPH
]job name
- 201
Created
- application/json
- Schema
- Example (from schema)
Schema
- callback string
- create_time date-time
- id int64
- name string
- project int64
- status string
- tag string
- type string
Possible values: [
SLURM:SINGULARITY
,KUBERNETES:DOCKER
] user object
id stringdisplay_name stringusername stringemail string
{
"callback": "string",
"create_time": "2024-08-19",
"id": 0,
"name": "string",
"project": 0,
"status": "string",
"tag": "string",
"type": "SLURM:SINGULARITY",
"user": {
"id": "string",
"display_name": "string",
"username": "string",
"email": "string"
}
}