Jobboard garbage bin and usage
When a job is claimed on a jobboard, but the engine fails loading it (for some reason, maybe the format is invalid, maybe the job details don't have a valid logbook uuid, or some other reason) it would be nice to move those types of jobs to a 'garbage' folder in the jobboard so that other users of the jobboard do not try to load it and get a similar failure.
To start if there was a 'garbage' function on the jobboard that can be used to place these kinds of jobs this would allow users of jobboards to have policies about when things get placed here.
Blueprint information
- Status:
- Complete
- Approver:
- Joshua Harlow
- Priority:
- Medium
- Drafter:
- Joshua Harlow
- Direction:
- Approved
- Assignee:
- Greg Hill
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Joshua Harlow
- Completed by
- Joshua Harlow
Related branches
Related bugs
Sprints
Whiteboard
dkrause: Implementing a JobBoard.fail(job, exception) method would make sense, and for the zookeeper implementation just tacking on a ".failed" to the job name (and filtering for it like we do with .lock) makes sense to me.
jh: agreed, then lets the user of the jobboard decide what is failure which seems appropriate (the best policy is one the app has control over, which if that fail() function exists would allow for there own policy).
Gerrit topic: https:/
Addressed by: https:/
add jobboard trash method