interface JobLifecycleCallbacks

Methods

beforeReleasing(Closure $callback)

Register a callback to run before the job becomes available for another attempt.

beforeFailing(Closure $callback)

Register a callback to run before the job is recorded as failed.

Details

at line 16
JobLifecycleCallbacks beforeReleasing(Closure $callback)

Register a callback to run before the job becomes available for another attempt.

The release must not proceed if a callback throws.

Parameters

Closure $callback

Return Value

JobLifecycleCallbacks

at line 23
JobLifecycleCallbacks beforeFailing(Closure $callback)

Register a callback to run before the job is recorded as failed.

The failure must not be published if a callback throws.

Parameters

Closure $callback

Return Value

JobLifecycleCallbacks