Skip to content
Permalink
Browse files

Fixed #437 Cronmail monitor is started when manually executing all jobs

  • Loading branch information...
mennodekker committed Apr 8, 2019
1 parent 6a18013 commit 2a234be6d0e29e80bf2d78cedc0fead7b574187b
Showing with 4 additions and 1 deletion.
  1. +4 −1 classes/Gems/Task/Mail/AddAllMailJobsTask.php
@@ -72,6 +72,9 @@ public function execute($respondentId = null, $organizationId = null)
} else {
$this->getBatch()->addMessage($this->_('Nothing to do, please create a mail job first.'));
}
$batch->addTask('Mail\\CronMailMonitorTask');
// When manually running the jobs, we do not start the monitortask
if ($batch->getId() == 'cron') {
$batch->addTask('Mail\\CronMailMonitorTask');
}
}
}

0 comments on commit 2a234be

Please sign in to comment.
You can’t perform that action at this time.