HumHub Documentation (unofficial)

RetryableJobInterface extends JobInterface

Retryable Job Interface.

Tags
author

Roman Zhuravlev zhuravljov@gmail.com

Table of Contents

Methods

canRetry()  : bool
execute()  : void|mixed
getTtr()  : int

Methods

canRetry()

public canRetry(int $attempt, Exception|Throwable $error) : bool
Parameters
$attempt : int

number

$error : Exception|Throwable

from last execute of the job

Return values
bool

execute()

public execute(Queue $queue) : void|mixed
Parameters
$queue : Queue

which pushed and is handling the job

Return values
void|mixed

result of the job execution


        
On this page

Search results