Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move failed jobs to the failed state #159

Merged
merged 5 commits into from
Oct 15, 2024
Merged

move failed jobs to the failed state #159

merged 5 commits into from
Oct 15, 2024

Conversation

apoorvsadana
Copy link
Contributor

Failed jobs were getting left in LockedForProcessing state. This is incorrect, every job should move to a terminal state after everything is done. In this PR, the following changes are done

  1. If processing fails, move job to the failed state
  2. If verification fails and no more process attempts are left, move job to the failed state

A failure reason metadata field is added for debugging eventually.

The PR also does an optimisation in update_job which now returns the updated item (vs before where we manually updated the job in the calling function which was hacky)

This PR does NOT fix the issue with jobs being left in LockedForProcessing when an orchestrator pod gets randomly killed. Still need to figure out what to do here.

@apoorvsadana apoorvsadana changed the title move failed to jobs to the failed state move failed jobs to the failed state Oct 15, 2024
Copy link
Member

@ocdbytes ocdbytes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !!

@coveralls
Copy link

coveralls commented Oct 15, 2024

Coverage Status

coverage: 65.056% (+0.3%) from 64.798%
when pulling 233b4cd on lfp_fix
into 5fb2de6 on main.

@Mohiiit Mohiiit merged commit 64b375d into main Oct 15, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants