Runner
Less than 1 minute
Runner
Task implementation for executing scheduled callable endpoints.
class Runner extends \Hazaar\Warlock\Agent\TaskExtends: Hazaar\Warlock\Agent\Task
Properties
when
public Cron $whenType: Hazaar\Util\Cron
timeout
Timeout in seconds for task execution lifecycle.
public int $timeout = 60Type: int
Methods
schedule
Schedules the runner task using a timestamp or cron expression.
public schedule(int|string $when): selfReturns: self
Parameters
| Parameter | Type | Description |
|---|---|---|
$when | int | string |
touch
Advances schedule and returns the next run timestamp.
public touch(): ?intReturns: int
start
Marks task execution start and updates running state metadata.
public start(): voidReturns: void
run
public run(): selfReturns: self
processCommand
protected processCommand(PacketType $command, mixed $payload): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$command | Hazaar\Warlock\Enum\PacketType | |
$payload | mixed |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000