This PR improves how we track job status. I added two new fields: job_id and attempts, which tracks the job id and the number of attempts a job was retried, respectively.
Also, this PR fixes a bug where markAsStarted was resetting the started_at timestamp when a job was retried.
This PR improves how we track job status. I added two new fields:
job_id
andattempts
, which tracks the job id and the number of attempts a job was retried, respectively.Also, this PR fixes a bug where
markAsStarted
was resetting thestarted_at
timestamp when a job was retried.