JobBackOnlineEvent
EventType: JOB_BACK_ONLINEDomain: production Broker subject: progress.notification.production
Marks a paused job as back online (re-active) after an offline period, updating last_online and resuming the work session. Counterpart to JobPausedOfflineEvent.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: JOB_BACK_ONLINE.
Preconditions
- Job exists with key
info.job_key - Job
stageisPAUSED(offline pause)
State Changes (Transaction)
Collections: Inherited from BaseProductionEvent.get_tx_collections()
Jobupdated:stage → STARTED,last_onlinerefreshed
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 |
work_order_key | str | None | Work order key |
phase_key | str | None | Phase key |
Related Events
None.