Ultimate

X_JOB_LEASE_LOST

Means

the queue took this job back mid-run

Typical cause

x jobs cancel wrote a terminal state, or this worker's visibility lease lapsed and another worker re-claimed the row. Its own code and not X_ABORTED because the response differs: X_ABORTED is "your deadline passed, make the work smaller", this is "somebody else owns this run now, stop writing to it"

Fix

x jobs show <id> --json

Listed under Jobs

This page as markdown