mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Remove sleep calls
This commit is contained in:
@@ -38,10 +38,7 @@ abstract class task_databoxAbstract extends task_abstract
|
||||
if ($this->getRunner() == self::RUNNER_SCHEDULER) {
|
||||
$this->log("appbox connection lost, restarting in 10 min.", self::LOG_ERROR);
|
||||
|
||||
// DON'T do sleep(600) because it prevents ticks !
|
||||
for ($t = 60 * 10; $this->running && $t; $t--) {
|
||||
sleep(1);
|
||||
}
|
||||
$this->sleep(60 * 10);
|
||||
// because connection is lost we cannot change status to 'torestart'
|
||||
// anyway the current status 'running' with no pid
|
||||
// will enforce the scheduler to restart the task
|
||||
|
Reference in New Issue
Block a user