Skip to main content

Worker Task (Simple Task)

A Simple task is a Worker task that requires an external worker for polling. The Workers can be implemented in any language, and Conductor SDKs provide additional features such as metrics, server communication, and polling threads that make the worker creation process easier.

Definitions

{
"name": "workflow_name",
"description": "Edit or extend this sample workflow. Set the workflow name to get started",
"version": 1,
"tasks": [
{
"name": "task_name",
"taskReferenceName": "task_name_ref",
"inputParameters": {},
"type": "SIMPLE"
}
]
}

  • cacheConfig - Enabling this option allows saving the cache output of the task. On enabling you can provide the following parameters:
    • TTL (in seconds) - Provide the time to live in seconds.You can also pass this parameter as variables.
    • Cache Key - Provide the cache key, which is a string with parameter substitution based on the task input. You can also pass this parameter as variables.

Examples

In our getting started guide - there is a complete example of how to add and run a custom worker task.

Worker Task Definition

Refer to this api for the metadata of a task definition.