mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
Cron parallelization
* refactor counts
This commit is contained in:
@@ -278,7 +278,7 @@ function CronExec($oP, $bVerbose, $bDebug = false)
|
||||
}
|
||||
|
||||
// Tasks to run later
|
||||
if ($bVerbose && $aTasks == []) {
|
||||
if ($bVerbose && count($aTasks) == 0) {
|
||||
$oP->p('--');
|
||||
$oSearch = new DBObjectSearch('BackgroundTask');
|
||||
$oSearch->AddCondition('next_run_date', $sNow, '>');
|
||||
@@ -291,7 +291,7 @@ function CronExec($oP, $bVerbose, $bDebug = false)
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($aTasks == []) {
|
||||
if (count($aTasks) == 0) {
|
||||
if ($bVerbose) {
|
||||
$oP->p("Sleeping...\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user