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
stageisPAUSED
State Changes (Transaction)
Collections: Inherited from BaseProductionEvent.get_tx_collections()
Jobupdated:stage → STARTED,last_online,last_work_session_startedWorkSessioninserted viaWorkSessionCreatedEventchild event- Active batch serials updated if
info.batch_serialsprovided
Side Effects (post_processing)
Inherits post_processing() from BaseProductionEvent:
- Updates
job.last_online - Recalculates work order status
- Publishes to
progress.notification.production
InfoModel Fields
| Field | Type | Description |
|---|---|---|
job_key | str | ArangoDB key of the job to resume |
batch_serials | list[str] | None | Updated serial keys for the active batch |
work_order_key | str | None | Work order key |
phase_key | str | None | Phase key |
Related Events
WorkSessionCreatedEvent— spawned to open a new work session