-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[stable29] fix(cron): Log long running jobs #45813
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
Conversation
Signed-off-by: Christoph Wurst <[email protected]>
| $timeSpent = $timeAfter - $timeBefore; | ||
| if ($timeSpent > $cronInterval) { | ||
| $logLevel = match (true) { | ||
| $timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, |
Check notice
Code scanning / Psalm
DeprecatedClass
| if ($timeSpent > $cronInterval) { | ||
| $logLevel = match (true) { | ||
| $timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
| $timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, |
Check notice
Code scanning / Psalm
DeprecatedClass
| $logLevel = match (true) { | ||
| $timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
| $timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
| $timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, |
Check notice
Code scanning / Psalm
DeprecatedClass
| $timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
| $timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
| $timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, | ||
| $timeSpent > $cronInterval * 8 => \OCP\ILogger::INFO, |
Check notice
Code scanning / Psalm
DeprecatedClass
| $timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
| $timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, | ||
| $timeSpent > $cronInterval * 8 => \OCP\ILogger::INFO, | ||
| default => \OCP\ILogger::DEBUG, |
Check notice
Code scanning / Psalm
DeprecatedClass
Backport of PR #45804