We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30603e8 commit f29cbbdCopy full SHA for f29cbbd
src/Jenner/Crontab/Daemon.php
@@ -70,7 +70,12 @@ public function start()
70
// add task loader timer is exists.
71
if (!empty($this->task_loader) && is_callable($this->task_loader)) {
72
$loop->addPeriodicTimer(60, function () {
73
+ $start_time = time();
74
$this->task_loader = call_user_func($this->task_loader);
75
+ $execution_time = time() - $start_time;
76
+ if ($execution_time > 60) {
77
+ $this->logger->warning("task loader's execution time is more than 60 seconds.");
78
+ }
79
});
80
}
81
0 commit comments