Class JobProgressLifecycle
java.lang.Object
com.kingsrook.qqq.backend.core.jobs.progress.JobProgressLifecycle
Progress changes owned by the kernel at reclaim and terminal transitions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfinished(DurableJobStore store, QRecord job, JobStatus status, String summary) Append the winning terminal transition summary after its snapshot commits.static voidreclaimed(DurableJobStore store, QRecord chunk) Reset live fields to committed work, preserving the interrupted attempt log.static JobProgressSnapshotRead a snapshot, falling back to committed counts for existing jobs.static Map<String, Serializable> terminalValues(DurableJobStore store, QRecord job, JobStatus status, String summary) Persist final progress atomically with the winning status transition.
-
Method Details
-
snapshot
Read a snapshot, falling back to committed counts for existing jobs. -
reclaimed
Reset live fields to committed work, preserving the interrupted attempt log.- Throws:
QException
-
finished
Append the winning terminal transition summary after its snapshot commits. -
terminalValues
public static Map<String,Serializable> terminalValues(DurableJobStore store, QRecord job, JobStatus status, String summary) Persist final progress atomically with the winning status transition.
-