Skip to content

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 stage is PAUSED (offline pause)

State Changes (Transaction)

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • Job updated: stage → STARTED, last_online refreshed

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
work_order_keystr | NoneWork order key
phase_keystr | NonePhase key

None.

Source

JobBackOnlineEvent on GitHub

Released under the Apache 2.0 License.