Runner
Less than 1 minute
Runner
Task implementation for executing scheduled callable endpoints.
class Runner extends \Hazaar\Warlock\Agent\Task\TaskProperties
when
public Cron $whentimeout
Timeout in seconds for task execution lifecycle.
public int $timeout = 60Methods
schedule
Schedules the runner task using a timestamp or cron expression.
public schedule(string $when): selfParameters
| Parameter | Type | Description |
|---|---|---|
$when | string |
touch
Advances schedule and returns the next run timestamp.
public touch(): ?intstart
Marks task execution start and updates running state metadata.
public start(): voidrun
public run(): selfprocessCommand
protected processCommand(PacketType $command, mixed $payload): boolParameters
| Parameter | Type | Description |
|---|---|---|
$command | PacketType | |
$payload | mixed |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000