Interface yii\queue\RetryableJobInterface

Extendsyii\queue\JobInterface
Implemented byyii\queue\RetryableJob

Interface RetryableJobInterface

Method Details

canRetry() public abstract method

public abstract boolean canRetry ( $attempt, $error )
$attempt integer

Number

$error Exception|Throwable

From last execute of the job

getTtr() public abstract method

public abstract integer getTtr ( )
return integer

Time to reserve in seconds