Skip to content

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_record updated: canceled flag set
  • is_in_position records unlocked for the affected inventory keys

Side Effects (post_processing)

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields

FieldTypeDescription
count_keystrArangoDB key of the count record to cancel
inventory_keyslist[str] | NoneKeys of is_in_position records to unlock

None.

Source

CountCanceledEvent on GitHub

Released under the Apache 2.0 License.