Skip to content

Commit

Permalink
fix(Cron) stop running tasks from starting again when quiet parameter…
Browse files Browse the repository at this point in the history
… is applied
  • Loading branch information
joebordes committed Nov 27, 2021
1 parent 84a6c66 commit 59421be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vtigercron.php
Expand Up @@ -62,10 +62,12 @@
$run_task = true;
}
}
if (!$run_task && !$quiet) {
$msg = sprintf("[INFO]: %s - not ready to run as the time to run again is not completed\n", $cronTask->getName());
echo $msg;
$logbg->info($msg);
if (!$run_task) {
if (!$quiet) {
$msg = sprintf("[INFO]: %s - not ready to run as the time to run again is not completed\n", $cronTask->getName());
echo $msg;
$logbg->info($msg);
}
continue;
}
}
Expand Down

0 comments on commit 59421be

Please sign in to comment.