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 sidekiq_option for on-conflict-reschedule perform_in time #813

Merged

Conversation

mgmarlow
Copy link
Contributor

@mgmarlow mgmarlow commented Oct 16, 2023

Add schedule_in sidekiq job option to customize the on-conflict-reschedule duration of 5 seconds. The default remains 5 seconds if no schedule_in is provided.

In my particular use-case for on-conflict-reschedule, the jobs that I'm rescheduling have rather long processing times (eg minutes instead of seconds). The default perform_in of 5 seconds causes a lot of churn in the sidekiq scheduler, I'd prefer to schedule conflicts out another minute or so rather than attempting after a few seconds.

@mgmarlow mgmarlow force-pushed the on-conflict-reschedule-perform-in-option branch from 4f5ca29 to 0b10ae2 Compare October 16, 2023 18:21
Add schedule_in sidekiq job option to customize the
on-conflict-reschedule duration of 5 seconds. The default remains 5
seconds if no schedule_in is provided.
@mgmarlow mgmarlow force-pushed the on-conflict-reschedule-perform-in-option branch from 0b10ae2 to 971d170 Compare October 17, 2023 16:32
@mhenrixon
Copy link
Owner

Thank you for contributing! That's a great addition to the gem

@mgmarlow
Copy link
Contributor Author

mgmarlow commented Nov 2, 2023

Thank you for contributing! That's a great addition to the gem

Happy to help!

I was taking a look at the build failures but I don't think they're related to this PR, unless I'm reading something wrong:

SidekiqUniqueJobs::Cli#help #help list displays help about the key command

Let me know if you'd like me to make any updates to this PR.

@mhenrixon mhenrixon enabled auto-merge (squash) November 9, 2023 17:03
@mhenrixon mhenrixon disabled auto-merge November 9, 2023 17:04
@mhenrixon mhenrixon merged commit e430e39 into mhenrixon:main Nov 9, 2023
1 of 7 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.

2 participants