Workers
A worker is responsible for executing a custom task. Workers can be implemented in any language, and Swift Conductor comes with Client SDKs that provide features such as polling threads, metrics, and server communication that makes creating workers easy.
Each worker adheres to the the Microservice design pattern and follows certain basic principles:
- Workers are stateless and do not implement a workflow specific logic.
- Each worker executes a very specific task and produces well defined output given specific inputs.
- Workers are meant to be idempotent (or should handle cases where the task that partially executed gets rescheduled due to timeouts etc.)
- Workers do not implement the logic to handle retries etc, that is taken care by the Conductor server.
Conductor maintains a registry of custom tasks. A task MUST be registered before being used in a workflow. This can be done by creating and saving a Task Definition.