Methods

generateJobId()

generateJobId() : string

Generate job ID

Returns

string

getJobId()

getJobId() : string

Get job ID

Returns

string

hasJobId()

hasJobId() : boolean

Has job ID

Returns

boolean

setJobDescription()

setJobDescription(string  $description) : \Pop\Queue\Processor\Jobs\JobInterface

Set job description

Parameters

string $description

Returns

\Pop\Queue\Processor\Jobs\JobInterface

getJobDescription()

getJobDescription() : string

Get job description

Returns

string

hasJobDescription()

hasJobDescription() : boolean

Has job description

Returns

boolean

setCallable()

setCallable(mixed  $callable, mixed  $params = null) : \Pop\Queue\Processor\Jobs\JobInterface

Set job callable

Parameters

mixed $callable
mixed $params

Returns

\Pop\Queue\Processor\Jobs\JobInterface

getCallable()

getCallable() : mixed

Get job callable

Returns

mixed

getCommand()

getCommand() : string

Get job application command

Returns

string

getExec()

getExec() : string

Get job CLI executable command

Returns

string

hasCallable()

hasCallable() : boolean

Has job callable

Returns

boolean

hasCommand()

hasCommand() : boolean

Has job application command

Returns

boolean

hasExec()

hasExec() : boolean

Has job CLI executable command

Returns

boolean

attemptOnce()

attemptOnce(boolean  $attemptOnce = true) : \Pop\Queue\Processor\Jobs\JobInterface

Set job to only attempt once

Parameters

boolean $attemptOnce

Returns

\Pop\Queue\Processor\Jobs\JobInterface

isAttemptOnce()

isAttemptOnce() : boolean

Set job to only attempt to run once

Returns

boolean

hasFailed()

hasFailed() : boolean

Has job failed

Returns

boolean

isRunning()

isRunning() : boolean

Is job running

Returns

boolean

isComplete()

isComplete() : boolean

Is job complete

Returns

boolean

run()

run() : void

Run job