Task States
Common task state progressions:
Success: scheduled → queued → processing → completed
Retry Success: scheduled → queued → processing → retrying → ... → processing → completed
Failed: scheduled → queued → processing → retrying → ... → abandoned
Cancelled: scheduled → cancelled
Expired: scheduled → expired
Notification Events
Available notification events:
task.queued
: Task is queued for executiontask.processing
: Task execution startedtask.completed
: Task completed successfullytask.failed
: Task failed after all retriestask.expired
: Task expired before executiontask.cancelled
: Task was cancelledgroup.first_failed
: First failure in a group taskgroup.all_completed
: All group tasks completedgroup.all_failed
: All group tasks failedgroup.partial_completion
: Some tasks completed, some failed
If no events are specified, notifications are sent for all events.
When using group tasks (target: "group:name"), these additional events provide detailed status updates:
group.first_failed
: First task failure in the groupgroup.all_completed
: All tasks in the group have completed (success or failure)group.all_failed
: All tasks in the group have failedgroup.partial_completion
: Some tasks completed successfully, others failedgroup.task_cancelled
: A task in the group was cancelledgroup.task_expired
: A task in the group expired
Each group event includes the group_info object with current completion statistics.