SDK reference / Models / Compute

BatchTaskSpec

Kind: class

Namespace: Egulu.Sdk.Models.Compute

What to run. Give command (an argument list), script (a shell script) or image (a container image; command is then its arguments), andarrayCount to run it many times with BATCH_TASK_INDEX set to 0 to arrayCount - 1 (the tasks are named {name}-{index}).

Properties

NameTypeJSON nameDescription
ArrayCountint?arrayCountRun this many copies, 1 to 5000.
CommandList<string>?commandThe program and arguments, run without a shell. At most 64 items.
DependsOnList<string>?dependsOnNames of tasks (or array tasks) of the job that must succeed first; if one fails this task is skipped.
EnvModels.Compute.BatchTaskSpec_env?envEnvironment variables; at most 64, names of `[A-Za-z_][A-Za-z0-9_]*`. `BATCH_*` names are the platform's.
Imagestring?imageA container image to run (needs a container runtime on the node).
MaxRetriesint?maxRetriesHow many times a failed attempt is tried again, 0 to 10; 0 when omitted.
Namestring?nameThe task's ID within the job: 1 to 40 lowercase letters, digits or hyphens.
OutputFilesList<Models.Compute.BatchFile>?outputFilesFiles sent to buckets when the task has succeeded.
ResourceFilesList<Models.Compute.BatchFile>?resourceFilesFiles fetched from buckets before the task runs.
Scriptstring?scriptA shell script, run with `sh`. At most 64 KiB.
TimeoutSecondsint?timeoutSecondsSeconds an attempt may run, 1 to 86400; 3600 when omitted.