Job Lifecycle Model¶
InfraLynx jobs move through a bounded lifecycle.
Lifecycle states¶
pending: the job has been accepted and is waiting to be leased by a workerrunning: a worker has leased the job and is currently executing itsuccess: execution completed successfully and produced a terminal resultfailed: execution exhausted retry allowance or hit a terminal failure condition
Transition rules¶
- API creation always starts at
pending - worker leasing moves a job from
pendingtorunning - successful handler completion moves a job from
runningtosuccess - handler failure either returns the job to
pendingfor retry or moves it tofailed
Retry accounting¶
- every failed execution attempt increments
retryCount - retry policy is explicit and attached to the job contract
- jobs stop retrying when the retry cap is reached
- terminal failure preserves the latest error message in the job result metadata