Skip to content

JobPausedEvent

EventType: JOB_PAUSEDDomain: production Broker subject: progress.notification.production

Pauses an active job, setting its stage to PAUSED and closing the current work session. The job remains assigned and the active batch is preserved. Used for voluntary operator pauses during normal operation.

Sequence Diagram

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: JOB_PAUSED.

Preconditions

  • Job exists with key info.job_key
  • Job stage is STARTED

State Changes (Transaction)

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • Job updated: stage → PAUSED
  • WorkSession closed via WorkSessionClosedEvent child event

Side Effects (post_processing)

Inherits post_processing() from BaseProductionEvent:

  • Updates job.last_online
  • Recalculates work order status
  • Publishes to progress.notification.production

InfoModel Fields

FieldTypeDescription
job_keystrArangoDB key of the job to pause
work_order_keystr | NoneWork order key
phase_keystr | NonePhase key

Source

JobPausedEvent on GitHub

Released under the Apache 2.0 License.