Uh oh!
There was an error while loading. Please reload this page.
fix: make Rotate a TimedJob and run every hour - #53420
Conversation
Uh oh!
There was an error while loading. Please reload this page.
salmart-dev
commented
Jun 16, 2025
@come-nc the job is now set to run every hour |
4f529de to
25fe82dComparesalmart-dev
commented
Jun 19, 2025
In the last force-push I removed the "Merge into master" commit, which I created when clicking on the GitHub UI to update the branch instead of hitting rebase. |
salmart-dev
commented
Jun 19, 2025
@come-nc should I backport this to 30 and 31? |
25fe82d to
96b0d16Compare
Altahrim
left a comment
There was a problem hiding this comment.
You may need to adjust PR title :)
salmart-dev
commented
Jun 19, 2025
/backport 30 |
salmart-dev
commented
Jun 19, 2025
/backport stable30 |
salmart-dev
commented
Jun 19, 2025
/backport to stable30 |
salmart-dev
commented
Jun 19, 2025
/backport to stable31 |
1235c6a to
542b124Compare| public function __construct(ITimeFactory $time) { | ||
| parent::__construct($time); | ||
| $this->setInterval(3600); |
There was a problem hiding this comment.
Maybe we should eliminate this magic number (stick in in RotationTrait?) and then also use it elsewhere and keep rotation consistent across the board:
There was a problem hiding this comment.
Why not, but let’s not delay this PR any longer for this. It can be done later.
There was a problem hiding this comment.
But what if a 1h junk is much bigger than the configured limit?
previously it ran on every execution?
There was a problem hiding this comment.
@nickvergessen we discussed this here #53420 (comment) and concluded to set it to 1h, could you check with Côme or Benjamin?
542b124 to
58aa06bCompareSigned-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
58aa06b to
5fef6f1CompareHello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Summary
This PR is a follow-up to address issues discovered while investigating issue #49584
When running
occ background-job:worker, some jobs can be seen running constantly andRotateis one of them. It should be safe to run the rotation job every 5 seconds.Checklist