TaskCompletedEvent
EventType: TASK_COMPLETEDDomain: collaboration Broker subject: progress.notification.task
Marks a task as completed by setting status → COMPLETED and recording the closed timestamp and closed_by user key.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: TASK_COMPLETED.
Preconditions
- Task exists with key
info.task_key - Task
statusisOPENorIN_PROGRESS
State Changes (Transaction)
Collections: Task
Taskupdated:status → COMPLETED,closedtimestamp,closed_by
Side Effects (post_processing)
Publishes to progress.notification.task after commit.
InfoModel Fields
| Field | Type | Description |
|---|---|---|
task_key | str | ArangoDB key of the task |
closed | datetime | None | Timestamp of completion (defaults to now) |
closed_by | str | None | User key of the person closing the task |
Related Events
None.