Skip to main content
Version: v1.0

Task

Description#

Describes jobs that run code or a script to completion.

Specification#

List of all configuration options for a Task workload type.

...
image: perl
count: 10
cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]

Properties#

NameDescriptionTypeRequiredDefault
cmdCommands to run in the container[]stringfalse
countspecify number of tasks to run in parallelinttrue1
restartDefine the job restart policy, the value can only be Never or OnFailure. By default, it's Never.stringtrueNever
imageWhich image would you like to use for your servicestringtrue
Last updated on by Jianbo Sun