Skip to content

JobResumedEvent ​

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

Resumes a paused job: sets stage → STARTED, creates a new WorkSession, and optionally updates the active batch's serial keys.

Trigger ​

Triggered by: POST /event (universal event dispatcher)

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

Preconditions ​

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

State Changes (Transaction) ​

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • Job updated: stage → STARTED, last_online, last_work_session_started
  • WorkSession inserted via WorkSessionCreatedEvent child event
  • Active batch serials updated if info.batch_serials provided

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 resume
batch_serialslist[str] | NoneUpdated serial keys for the active batch
work_order_keystr | NoneWork order key
phase_keystr | NonePhase key

Source ​

JobResumedEvent on GitHub

Released under the Apache 2.0 License.