<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Cron; if (!defined('ABSPATH')) exit; use MailPoet\Entities\ScheduledTaskEntity; 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 ScheduledTaskEntity $task * @param float $timer * @return bool */ public function prepareTaskStrategy(ScheduledTaskEntity $task, $timer); /** * @param ScheduledTaskEntity $task * @param float $timer * @return bool */ public function processTaskStrategy(ScheduledTaskEntity $task, $timer); /** @return \DateTimeInterface */ public function getNextRunDate(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ActionScheduler | Folder | 0755 |
|
|
Triggers | Folder | 0755 |
|
|
Workers | Folder | 0755 |
|
|
CronHelper.php | File | 7.13 KB | 0644 |
|
CronTrigger.php | File | 2.39 KB | 0644 |
|
CronWorkerInterface.php | File | 939 B | 0644 |
|
CronWorkerRunner.php | File | 5.81 KB | 0644 |
|
CronWorkerScheduler.php | File | 2.77 KB | 0644 |
|
Daemon.php | File | 4.28 KB | 0644 |
|
DaemonActionSchedulerRunner.php | File | 2.04 KB | 0644 |
|
DaemonHttpRunner.php | File | 4.67 KB | 0644 |
|
Supervisor.php | File | 1.36 KB | 0644 |
|
index.php | File | 6 B | 0644 |
|