-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Check maintenance window time when using WebCron #32107
Conversation
The patch moves maintenance window check earlier so that maintenance window was respected when using both system cron and WebCron. Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tkme sensitivity should only be considered for cron, not for web or ajax
@@ -167,8 +168,9 @@ | |||
} else { | |||
// Work and success :-) | |||
$jobList = \OC::$server->getJobList(); | |||
$job = $jobList->getNext(); | |||
$job = $jobList->getNext($onlyTimeSensitive); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual fix would be to just inject false here or change the default of the method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please comment why?
I'm running NextCloud in Kubernetes and thus I can't use system cron daemon. Having Kubernetes' CronJob
is a solution - it runs periodically and "curl's" cron.php
. In this setup I still have short background jobs and time-sensitive ones which I want to run during maintenance hours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explanation in #30899 (comment)
I've opened #32109 with argument default change. |
The patch moves maintenance window check earlier so that
maintenance window was respected when using both system cron
and WebCron. Before the change webcron used to select
only time-sensitive tasks.
Signed-off-by: Kirill Popov kirill.s.popov@gmail.com