Heratio Framework API Reference

QueueJobInterface
in

Interface for queue job handlers.

Plugins implement this to define how a job type is processed.

Table of Contents

Methods

handle()  : array<string|int, mixed>
Process the job.
maxAttempts()  : int
Maximum number of retry attempts.
timeout()  : int
Per-job timeout in seconds (0 = no limit).

Methods

handle()

Process the job.

public handle(array<string|int, mixed> $payload, QueueJobContext $context) : array<string|int, mixed>
Parameters
$payload : array<string|int, mixed>

Job-specific arguments

$context : QueueJobContext

Context for progress/logging

Return values
array<string|int, mixed>

Result data stored in result_data column

maxAttempts()

Maximum number of retry attempts.

public maxAttempts() : int
Return values
int

timeout()

Per-job timeout in seconds (0 = no limit).

public timeout() : int
Return values
int

        
On this page

Search results