class SchedulerCommand extends AbstractCommand (View source)

Traits

Properties

protected Setting $setting

Store dirname

from  AbstractCommand
protected array $namespaces

The application namespace

from  AbstractCommand
protected Argument $arg

The Arg Option instance

from  AbstractCommand

Methods

void
throwFailsCommand(string $message, string|null $command = null)

Throw fails command

void
__construct(Setting $setting, Argument $arg)

AbstractCommand constructor

void
run()

Run the scheduler once (execute all due events)

void
work()

Start the scheduler daemon (continuous loop)

void
list()

List all registered scheduled events

void
next()

Show the next run time for all events

void
test(int $index = 0)

Test run a specific event by its index

Details

protected void throwFailsCommand(string $message, string|null $command = null)

Throw fails command

Parameters

string $message
string|null $command

Return Value

void

void __construct(Setting $setting, Argument $arg)

AbstractCommand constructor

Parameters

Setting $setting
Argument $arg

Return Value

void

void run()

Run the scheduler once (execute all due events)

Return Value

void

void work()

Start the scheduler daemon (continuous loop)

Return Value

void

void list()

List all registered scheduled events

Return Value

void

void next()

Show the next run time for all events

Return Value

void

void test(int $index = 0)

Test run a specific event by its index

Parameters

int $index

The 0-based index of the event to run

Return Value

void