- Implements scheduler worker for welcome and post notifications

- Updates sending queue worker to save rendered newsletter body
- Updates sending queue router to schedule post notification newsletters
This commit is contained in:
Vlad
2016-03-20 22:01:01 -04:00
parent ad31b143d2
commit 3f6caf5fa4
8 changed files with 145 additions and 42 deletions

View File

@@ -37,7 +37,8 @@ class Daemon {
}
$this->abortIfStopped($daemon);
try {
do_action('mailpoet_cron_worker', $this->timer);
do_action('mailpoet_scheduler_worker', $this->timer);
do_action('mailpoet_queue_worker', $this->timer);
} catch(\Exception $e) {
}
$elapsed_time = microtime(true) - $this->timer;