<?php namespace MailPoet\Cron; if (!defined('ABSPATH')) exit; use MailPoet\Models\ScheduledTask; interface CronWorkerInterface { /** @return string */ public function getTaskType(); /** @return bool */ public function scheduleAutomatically(); /** @return bool */ public function supportsMultipleInstances(); /** @return bool */ public function checkProcessingRequirements(); public function init(); /** * @param ScheduledTask $task * @param float $timer * @return bool */ public function prepareTaskStrategy(ScheduledTask $task, $timer); /** * @param ScheduledTask $task * @param float $timer * @return bool */ public function processTaskStrategy(ScheduledTask $task, $timer); /** @return \DateTimeInterface */ public function getNextRunDate(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Triggers | Folder | 0755 |
|
|
Workers | Folder | 0755 |
|
|
CronHelper.php | File | 6.44 KB | 0644 |
|
CronTrigger.php | File | 1.45 KB | 0644 |
|
CronWorkerInterface.php | File | 813 B | 0644 |
|
CronWorkerRunner.php | File | 4.58 KB | 0644 |
|
CronWorkerScheduler.php | File | 2.24 KB | 0644 |
|
Daemon.php | File | 2.86 KB | 0644 |
|
DaemonHttpRunner.php | File | 5.02 KB | 0644 |
|
Supervisor.php | File | 1.27 KB | 0644 |
|
index.php | File | 0 B | 0644 |
|