mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
19 lines
342 B
PHP
19 lines
342 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Schedules;
|
|
|
|
use Pterodactyl\Models\Schedule;
|
|
use Throwable;
|
|
|
|
interface ProcessesSchedules
|
|
{
|
|
/**
|
|
* Push the schedule's first task onto the queue worker.
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function process(Schedule $schedule, bool $now = false): void;
|
|
}
|