Class JobSignals
java.lang.Object
com.kingsrook.qqq.backend.core.jobs.runtime.JobSignals
Everything a job tells the outside world: realtime events (job.status on
every change, job.progress throttled to one per second per job - counts
only, never row values), alerts (jobs.job-failed, jobs.job-stalled) and the
owner's completion notification. All best effort: a signal failure never
fails a job. Core never depends on qbit-alerts; QAlerts routes to whatever
sink the app installed.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voideffectResolved(Integer effectId, String how) Resolve an effect's review alert.static voideffectUnresolved(QRecord effect) Raise the alert for an outbox effect whose delivery could not be determined and that is queued for review (deduped per effect).static voidA job reached a final (or review) status: notify its owner, raise or resolve the failure alert, publish status.static voidPublish job.progress (at most once per second per job unless forced).static voidRaise the stalled alert for a job.static voidPublish job.status to the job's record channel and the owner's user channel.static voidResolve the stalled alert for a job (it moved again).
-
Field Details
-
ALERT_JOB_FAILED
- See Also:
-
ALERT_JOB_STALLED
- See Also:
-
ALERT_EFFECT_UNRESOLVED
- See Also:
-
HEARTBEAT_REAPER
- See Also:
-
EVENT_STATUS
- See Also:
-
EVENT_PROGRESS
- See Also:
-
-
Method Details
-
status
-
progress
Publish job.progress (at most once per second per job unless forced). -
finished
-
stalled
-
effectUnresolved
Raise the alert for an outbox effect whose delivery could not be determined and that is queued for review (deduped per effect). -
effectResolved
-
unstalled
Resolve the stalled alert for a job (it moved again).
-