CountCanceledEvent
EventType: COUNT_CANCELEDDomain: inventory Broker subject: progress.notification.inventory
Cancels a pending count record and releases the associated position locks in is_in_position. Allows an operator to abandon an in-progress count without applying it.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: COUNT_CANCELED.
Preconditions
- Count record exists with key
info.count_key
State Changes (Transaction)
Collections: is_in_position, inventory_count_record
inventory_count_recordupdated:canceledflag setis_in_positionrecords unlocked for the affected inventory keys
Side Effects (post_processing)
Inherits post_processing() from BaseInventoryEvent:
- Publishes to
progress.notification.inventory
InfoModel Fields
| Field | Type | Description |
|---|---|---|
count_key | str | ArangoDB key of the count record to cancel |
inventory_keys | list[str] | None | Keys of is_in_position records to unlock |
Related Events
None.