Skip to content

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

  • Task updated: status → CANCELED, optional reason stored

Side Effects (post_processing)

Publishes to progress.notification.task after commit.

InfoModel Fields

FieldTypeDescription
task_keystrArangoDB key of the task to cancel
reasonstr | NoneReason for cancellation

None.

Source

TaskCanceledEvent on GitHub

Released under the Apache 2.0 License.