Schedule
class Schedule (View source)
Properties
protected Event[] | $events | All of the events on the schedule. | |
protected EventMutex | $eventMutex | The event mutex implementation. | |
protected SchedulingMutex | $schedulingMutex | The scheduling mutex implementation. |
Methods
Create a new schedule instance.
Add a new callback event to the schedule.
Add a new Artisan command event to the schedule.
Add a new job callback event to the schedule.
Compile parameters for a command.
Determine if the server is allowed to run this event.
Specify the cache store that should be used to store mutexes.
Details
at line 39
void
__construct()
Create a new schedule instance.
at line 59
CallbackEvent
call(string|callable $callback, array $parameters = [])
Add a new callback event to the schedule.
at line 75
Event
command(string $command, array $parameters = [])
Add a new Artisan command event to the schedule.
at line 93
CallbackEvent
job(object|string $job, string|null $queue = null)
Add a new job callback event to the schedule.
at line 113
Event
exec(string $command, array $parameters = [])
Add a new command event to the schedule.
at line 130
protected string
compileParameters(array $parameters)
Compile parameters for a command.
at line 152
bool
serverShouldRun(Event $event, DateTimeInterface $time)
Determine if the server is allowed to run this event.
at line 163
Collection
dueEvents(Application $app)
Get all of the events on the schedule that are due.
at line 184
$this
useCache(string $store)
Specify the cache store that should be used to store mutexes.