Task Context

Infinitic is still in active development. Subscribe here to follow the progress.

In some cases, we want to know more about the context of the execution of a task. When running, a task instance has a context property containing the following data:

NameTypeDescription
idUUIDid of the task
tagsSet<String>tags of the task
workflowIdUUIDid of the parent workflow (may be null)
workflowNameStringname of the parent workflow (may be null)
attemptIdUUIDid of the current task attempt
retrySequenceIntegernumber of times the task was manually retried
retryIndexIntegernumber of times the task was automatically retried (reset to 0 after a manual retry)
lastErrorErrorif any, the error during the previous attempt
clientInfiniticClienta PulsarInfiniticClient we may use inside the task
Edit this page on GitHub Updated at Fri, May 28, 2021