Skip to content

Add reschedule functionality to BackgroundJob #2165

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

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

chrischu
Copy link
Contributor

We need the ability to reschedule jobs (similar to the requeue functionality) so we decided to contribute the code. I hope that's ok. Hopefully I added all the necessary tests, if not please let me know :).

Copy link
Member

@odinserj odinserj left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, look good to me. Since they don't break anything and quite simple, I can schedule this to 1.7.34 version. However may I ask you to make 2 slight changes to the PR?

  • Rename Requeue to Reschedule in two places in the BackgroundJob class.
  • Use 4 spaces instead of 2 in the changed lines.

@chrischu
Copy link
Contributor Author

Thanks @odinserj for the quick reply!

I made the changes you suggested, let me know if I missed something or if there's any other changes you'd like :)!

odinserj
odinserj previously approved these changes Feb 16, 2023
Copy link
Member

@odinserj odinserj left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@odinserj odinserj changed the base branch from master to 1.7.X February 17, 2023 04:11
@odinserj odinserj changed the base branch from 1.7.X to master February 17, 2023 04:12
@odinserj odinserj dismissed their stale review February 17, 2023 04:12

The base branch was changed.

@odinserj
Copy link
Member

@chrischu, may I also ask you to base changes on the 1.7.X branch instead of the master one? I'm now preparing the final release of 1.8.0 and landed it on master already.

@chrischu chrischu force-pushed the feature/AddReschedule branch from d92762d to 061ba2e Compare February 17, 2023 07:07
@chrischu chrischu changed the base branch from master to 1.7.X February 17, 2023 07:09
@chrischu
Copy link
Contributor Author

Done!

@odinserj odinserj merged commit e9e2ce1 into HangfireIO:1.7.X Feb 17, 2023
@luizfbicalho
Copy link

This feature changed the problem in #1976 ?

The state got too big in my database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants