JobInterface
in
Job interface
Tags
Table of Contents
Methods
- addFailedMessage() : JobInterface
- Add failed message
- complete() : JobInterface
- Complete job
- failed() : AbstractJob
- Set job as failed
- generateJobId() : string
- Generate job ID
- getAttempts() : int
- Get actual attempts
- getCallable() : mixed
- Get job callable
- getCommand() : string|null
- Get job application command
- getCompleted() : int|null
- Get completed timestamp
- getExec() : string|null
- Get job CLI executable command
- getFailed() : int|null
- Get failed timestamp
- getFailedMessages() : array<string|int, mixed>
- Get failed messages
- getJobDescription() : string|null
- Get job description
- getJobId() : string|null
- Get job ID
- getMaxAttempts() : int
- Get max attempts
- getResults() : mixed
- Get job results
- getRunUntil() : int|string|null
- Get run until value
- getStarted() : int|null
- Get started timestamp
- hasAttempts() : bool
- Has actual attempts
- hasCallable() : bool
- Has job callable
- hasCommand() : bool
- Has job application command
- hasExceededMaxAttempts() : bool
- Determine if the job has exceeded max attempts
- hasExec() : bool
- Has job CLI executable command
- hasFailed() : bool
- Has job failed
- hasFailedMessages() : bool
- Has failed messages
- hasJobDescription() : bool
- Has job description
- hasJobId() : bool
- Has job ID
- hasMaxAttempts() : bool
- Has max attempts
- hasNotRun() : bool
- Has job run yet
- hasResults() : bool
- Has job results
- hasRunUntil() : bool
- Has run until
- hasStarted() : bool
- Has job started
- isAttemptOnce() : bool
- Is job set for only one max attempt
- isComplete() : bool
- Is job complete
- isExpired() : bool
- Determine if the job has expired
- isRunning() : bool
- Is job running and has not completed or failed yet
- isValid() : bool
- Determine if the job is still valid
- run() : mixed
- Run job
- runUntil() : JobInterface
- Set the run until property
- setCallable() : JobInterface
- Set job callable
- setCommand() : JobInterface
- Set job application command
- setExec() : JobInterface
- Set job CLI executable command
- setJobDescription() : JobInterface
- Set job description
- setJobId() : JobInterface
- Set job ID
- setMaxAttempts() : JobInterface
- Set max attempts
- start() : JobInterface
- Start job
Methods
addFailedMessage()
Add failed message
public
addFailedMessage(string $message) : JobInterface
Parameters
- $message : string
Return values
JobInterfacecomplete()
Complete job
public
complete() : JobInterface
Return values
JobInterfacefailed()
Set job as failed
public
failed([string|null $message = null ]) : AbstractJob
Parameters
- $message : string|null = null
Return values
AbstractJobgenerateJobId()
Generate job ID
public
generateJobId() : string
Return values
stringgetAttempts()
Get actual attempts
public
getAttempts() : int
Return values
intgetCallable()
Get job callable
public
getCallable() : mixed
getCommand()
Get job application command
public
getCommand() : string|null
Return values
string|nullgetCompleted()
Get completed timestamp
public
getCompleted() : int|null
Return values
int|nullgetExec()
Get job CLI executable command
public
getExec() : string|null
Return values
string|nullgetFailed()
Get failed timestamp
public
getFailed() : int|null
Return values
int|nullgetFailedMessages()
Get failed messages
public
getFailedMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>getJobDescription()
Get job description
public
getJobDescription() : string|null
Return values
string|nullgetJobId()
Get job ID
public
getJobId() : string|null
Return values
string|nullgetMaxAttempts()
Get max attempts
public
getMaxAttempts() : int
Return values
intgetResults()
Get job results
public
getResults() : mixed
getRunUntil()
Get run until value
public
getRunUntil() : int|string|null
Return values
int|string|nullgetStarted()
Get started timestamp
public
getStarted() : int|null
Return values
int|nullhasAttempts()
Has actual attempts
public
hasAttempts() : bool
Return values
boolhasCallable()
Has job callable
public
hasCallable() : bool
Return values
boolhasCommand()
Has job application command
public
hasCommand() : bool
Return values
boolhasExceededMaxAttempts()
Determine if the job has exceeded max attempts
public
hasExceededMaxAttempts() : bool
Return values
boolhasExec()
Has job CLI executable command
public
hasExec() : bool
Return values
boolhasFailed()
Has job failed
public
hasFailed() : bool
Return values
boolhasFailedMessages()
Has failed messages
public
hasFailedMessages() : bool
Return values
boolhasJobDescription()
Has job description
public
hasJobDescription() : bool
Return values
boolhasJobId()
Has job ID
public
hasJobId() : bool
Return values
boolhasMaxAttempts()
Has max attempts
public
hasMaxAttempts() : bool
Return values
boolhasNotRun()
Has job run yet
public
hasNotRun() : bool
Return values
boolhasResults()
Has job results
public
hasResults() : bool
Return values
boolhasRunUntil()
Has run until
public
hasRunUntil() : bool
Return values
boolhasStarted()
Has job started
public
hasStarted() : bool
Return values
boolisAttemptOnce()
Is job set for only one max attempt
public
isAttemptOnce() : bool
Return values
boolisComplete()
Is job complete
public
isComplete() : bool
Return values
boolisExpired()
Determine if the job has expired
public
isExpired() : bool
Return values
boolisRunning()
Is job running and has not completed or failed yet
public
isRunning() : bool
Return values
boolisValid()
Determine if the job is still valid
public
isValid() : bool
Return values
boolrun()
Run job
public
run([Application|null $application = null ]) : mixed
Parameters
- $application : Application|null = null
runUntil()
Set the run until property
public
runUntil(int|string $runUntil) : JobInterface
Parameters
- $runUntil : int|string
Return values
JobInterfacesetCallable()
Set job callable
public
setCallable(mixed $callable[, mixed $params = null ]) : JobInterface
Parameters
- $callable : mixed
- $params : mixed = null
Return values
JobInterfacesetCommand()
Set job application command
public
setCommand(string $command) : JobInterface
Parameters
- $command : string
Return values
JobInterfacesetExec()
Set job CLI executable command
public
setExec(string $command) : JobInterface
Parameters
- $command : string
Return values
JobInterfacesetJobDescription()
Set job description
public
setJobDescription(string $description) : JobInterface
Parameters
- $description : string
Return values
JobInterfacesetJobId()
Set job ID
public
setJobId(string $id) : JobInterface
Parameters
- $id : string
Return values
JobInterfacesetMaxAttempts()
Set max attempts
public
setMaxAttempts(int $maxAttempts) : JobInterface
Parameters
- $maxAttempts : int
Return values
JobInterfacestart()
Start job
public
start() : JobInterface