Commit 1647fb36 authored by Timo Bühlmann's avatar Timo Bühlmann
Browse files

feat: allow to disable a command with expression=false

parent 6f9a7fbe
......@@ -143,6 +143,11 @@ class ExecutionManager
// Debug log
$this->logger->debug(sprintf('Checking if execution of %s is needed', get_class($cronJob)));
if (!$cronJob->getExpression()) {
$this->logger->debug(sprintf('%s is not active.', get_class($cronJob)));
return false;
// Get next execution date
$nextExecutionDate = $this->getNextExecutionDate($cronJob);
if (!$nextExecutionDate) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment