Task Context

Subscribe here to follow Infinitic's development. Please ⭐️ us on Github!

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:

idStringid of the task
tagsSet<String>tags of the task
workflowIdStringid of the parent workflow (may be null)
workflowNameStringname of the parent workflow (may be null)
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 Sat, Sep 10, 2022