Payload Format
When submitting a task graph to the Task Cluster Queue (see createTask) you must provide a payload for defining the tasks to be executed by the worker. In the case of the generic worker, the payload must conform to the following schema.
Generic worker payload (source)
This schema defines the structure of the payload
property referred to in a
Taskcluster Task definition.
artifacts | Array of | Artifacts to be published. Since: generic-worker 1.0.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
command | Array of[1:∞] | One entry per command (consider each entry to be interpreted as a full line of a Windows™ .bat file). For example:
Since: generic-worker 0.0.1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
env | Object of | Env vars must be string to string mappings (not number or boolean). For example:
Since: generic-worker 0.0.1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
features | Object of | Feature flags enable additional functionality. Since: generic-worker 5.3.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxRunTime | integer[1:86400] | Maximum time the task container can run in seconds. Since: generic-worker 0.0.1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mounts | Array of | Directories and/or files to be mounted. Since: generic-worker 5.4.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
osGroups | Array of | A list of OS Groups that the task user should be a member of. Requires
scope Since: generic-worker 6.0.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rdpInfo | string | Specifies an artifact name for publishing RDP connection information. Since this is potentially sensitive data, care should be taken to publish
to a suitably locked down path, such as
Use of this feature requires scope
The RDP connection data is published during task startup so that a user may interact with the running task. The task environment will be retained for 12 hours after the task completes, to enable an interactive user to perform investigative tasks. After these 12 hours, the worker will delete the task's Windows user account, and then continue with other tasks. No guarantees are given about the resolution status of the interactive task, since the task is inherently non-reproducible and no automation should rely on this value. Since: generic-worker 10.5.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
supersederUrl | string | uri | URL of a service that can indicate tasks superseding this one; the current See superseding for more detail. Since: generic-worker 10.2.2 |
The payload comprises of a command to run, environment variables to be set
(optionally encrypted) and a timeout for the task (maxRunTime
).
The worker will run the task, upload log files, and report back status to the Queue.
- Previous
- Up
- Next