跳至主要内容

CreateJob

CCS-job-1003 Create job

Header Parameters
  • x-api-host string required

    Default value: k8s-D-twcc

    Authentication Required Parameters

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 required

    Step name

  • availability_zone string

    Job

  • dependency_policy string

    Possible values: [AFTEROK, AFTERNOTOK, AFTERANY]

    The policy of the dependency

  • command string

    The command need to be executed in the image

  • env object

    Task container environment variables, the default is {}

  • image string required

    The image used for this step

  • flavor int32 required

    Flavor ID

  • runs int32

    How many concurrent runs should be lauched at once

  • slots int32

    How many slotPerWorker should be lauched in single mpi worker

  • volumes object[]
  • server string

    The hostname or IP address of an NFS server.(This value takes effect only on the type NFS)

  • path string

    mount source(This value takes effect on the types NFS and HOSTPATH)

  • subpath string

    subpath mount source(This value takes effect on HOSTPATH)

  • mountPath string required

    mount destination

  • type string required

    Possible values: [HOSTPATH, NFS, CEPH]

    job name

Responses

Created


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 string
  • display_name string
  • username string
  • email string
Loading...