SchedulerCommand
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
from
ConsoleTrait
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
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