TaskCanceledEvent
EventType: TASK_CANCELEDDomain: collaboration Broker subject: progress.notification.task
Cancels a task by setting its status to CANCELED and optionally recording a cancellation reason.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: TASK_CANCELED.
Preconditions
- Task exists with key
info.task_key - Task is not already canceled or completed
State Changes (Transaction)
Collections: Task
Taskupdated:status → CANCELED, optionalreasonstored
Side Effects (post_processing)
Publishes to progress.notification.task after commit.
InfoModel Fields
| Field | Type | Description |
|---|---|---|
task_key | str | ArangoDB key of the task to cancel |
reason | str | None | Reason for cancellation |
Related Events
None.