Skip to content
New issue

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

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

Already on GitHub? # to your account

Reaper will delete locks for running jobs #488

Closed
yaoyi opened this issue Apr 5, 2020 · 2 comments · Fixed by #493
Closed

Reaper will delete locks for running jobs #488

yaoyi opened this issue Apr 5, 2020 · 2 comments · Fixed by #493
Assignees

Comments

@yaoyi
Copy link

yaoyi commented Apr 5, 2020

Describe the bug
we currently have many long-running jobs, which may take 10 - 60 minutes each, and use until_executed lock, but reaper cleans up locks for running jobs, and allow same jobs enqueued, and this also blocks the reaping for real orphans

Expected behavior
same jobs should not be enqueued after reaping
reaper should not clean up the locks for any running jobs if the lock type is while_executing or until_executed

@mhenrixon
Copy link
Owner

Oof, I think it is a little more complicated than that. I believe we need to check if the job is checked out by any worker and if so skip cleaning the job.

Think that’s what is missing.

mhenrixon added a commit that referenced this issue Apr 8, 2020
mhenrixon added a commit that referenced this issue Apr 8, 2020
* Begin prevention of reaping active jobs

* Prevent reaping of active jobs

Close #488

* Don't reek

* Mandatory rubocop commit
@mhenrixon
Copy link
Owner

Released as v7.0.15

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants