- Places supervisor/daemon/worker under the new Cron class

- Updates endpoints
- Integrates queue worker with MailPoet mailer
- Fixes script activation check logic
This commit is contained in:
MrCasual
2015-12-02 22:48:15 -05:00
parent bf58d8a22d
commit 9b011c0281
31 changed files with 700 additions and 299 deletions

View File

@@ -172,13 +172,13 @@ class Menu {
add_submenu_page(
'mailpoet',
__('Queue'),
__('Queue'),
__('Cron'),
__('Cron'),
'manage_options',
'mailpoet-queue',
'mailpoet-cron',
array(
$this,
'queue'
'cron'
)
);
}
@@ -374,9 +374,9 @@ class Menu {
echo $this->renderer->render('form/editor.html', $data);
}
function queue() {
$daemon = new \MailPoet\Queue\BootStrapMenu();
function cron() {
$daemon = new \MailPoet\Cron\BootStrapMenu();
$data['daemon'] = json_encode($daemon->bootstrap());
echo $this->renderer->render('queue.html', $data);
echo $this->renderer->render('cron.html', $data);
}
}