Heratio Framework API Reference

QueueWorkCommand extends BaseCommand
in package

Persistent queue worker daemon.

Polls the queue for available jobs and processes them. Designed to run under systemd for automatic restarts.

Usage: php bin/atom queue:work php bin/atom queue:work --queue=ai,ingest php bin/atom queue:work --once php bin/atom queue:work --sleep=3 --max-jobs=100 --max-memory=256

Table of Contents

Methods

__construct()  : mixed
getDescription()  : string
Get the command description.
getName()  : string
Get the command name.
getNamespace()  : string
Get the namespace portion of the command name.
run()  : int
Run the command (called by the CLI router).

Methods

__construct()

public __construct([array<string|int, mixed> $argv = [] ]) : mixed
Parameters
$argv : array<string|int, mixed> = []

getDescription()

Get the command description.

public getDescription() : string
Return values
string

getName()

Get the command name.

public getName() : string
Return values
string

getNamespace()

Get the namespace portion of the command name.

public getNamespace() : string
Return values
string

run()

Run the command (called by the CLI router).

public run() : int
Return values
int

        
On this page

Search results