Task

Description

Task is a workload type to describe jobs that run code or a script to completion.

Specification

List of all configuration options for a Task workload type.

  1. name: my-app-name
  2. services:
  3. my-service-name:
  4. type: task
  5. image: perl
  6. count: 10
  7. cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]

Properties

NameTypeDescriptionNotes
Cmd[]string[optional]
Countint32specify number of tasks to run in parallel[default to 1]
ImagestringWhich image would you like to use for your service