Service
Service
The Warlock application service class
class Service extends \Hazaar\Warlock\Agent\ContainerExtends: Hazaar\Warlock\Agent\Container
Services are long running processes that allow code to be executed on the server in the background without affecting or requiring any interaction with the front-end. Services are managed by the Warlock process and can be set to start when Warlock starts or enabled/disabled manually using the Hazaar\Warlock\Control class.
Services are executed within the Application context and therefore have access to everything (configs, classes/models, cache, etc) that your application front-end does.
See the "Services Documentation":https://hazaar.dev/docs/components/warlock/services for information on how to write and manage services.
Constants
int
private const int = nullProperties
heartbeatInterval
Seconds between STATUS heartbeats sent to the agent. The agent sets it in heartbeat.interval of the config.
private int $heartbeatInterval = 'self'Type: int
name
Human-readable service name used in logs and control output.
protected string $nameType: string
config
protected array $configType: array
schedule
Runtime schedule queue keyed by generated action IDs.
protected array $scheduleType: array
next
public int $nextType: int
public $public $public $public $public $Generated by Hazaar API Doc Generator on Thu, 22 Oct 2026 05:05:30 +0000