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

Add a lock_ttl to the sidekiq jobs #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JasonBarnabe
Copy link

It's possible that the lock added by sidekiq-unique-jobs is not removed in exceptional scenarios (outage, server reboot, etc.). This prevents any further jobs from processing forever (or at least until the lock is cleared by redis expiry or dev intervention) and silently.

Add a TTL so that in this case, things eventually start processing again. TTL is set to 1 hour, which seems like ample time to run jobs normally, but short enough that updates start working again quickly in the event of a problem.

It's possible that the lock added by sidekiq-unique-jobs is not removed in exceptional scenarios (outage, server reboot, etc.). This prevents any further jobs from processing forever (or at least until the lock is cleared by redis expiry or dev intervention). Add a TTL so that in this case, things eventually start processing again. TTL is set to 1 hour, which seems like ample time to run jobs normally, but short enough that updates start working again quickly in the event of a problem.
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.

1 participant