QueueableJobBuilder
class QueueableJobBuilder
Methods
No description
Build QueueableJob and schedule it
No description
Cancels job via $uniqueId and job class name
No description
Set delay for job execution
How may times should a job be retried when it failed.
No description
Define a reference ID which can later be used to lookup this job
No description
No description
Define a unique ID which can later be used to lookup this job The ID will checked against your specific job class (no need to pass module name in id)
Details
at line 27
QueueableJob
build()
No description
at line 38
bool
buildAndSchedule()
Build QueueableJob and schedule it
at line 164
static bool
cancelAllByReferenceKey($referenceKey)
No description
at line 174
static void
cancelByJobUniqueIdAndClass(string $uniqueId, string $jobClass)
Cancels job via $uniqueId and job class name
at line 19
static QueueableJobBuilder
create(Job $job)
No description
at line 154
static QueueableJob|null
findByJobUniqueId(string $jobClass, string $id)
No description
at line 115
QueueableJobBuilder
setDelay(int $seconds)
Set delay for job execution
at line 142
QueueableJobBuilder
setMaxRetries(int $maxRetries)
How may times should a job be retried when it failed.
You can use this setting if you expect your job to need multiple retries
at line 102
QueueableJobBuilder
setQueue(string $queue)
No description
at line 71
QueueableJobBuilder
setReferenceKey(string $referenceKey)
Define a reference ID which can later be used to lookup this job
todo use "CacheKeyObject" / beware of your scope!!
at line 56
QueueableJobBuilder
setReplaceJobIfExists(bool $replaceJob = true)
No description
at line 129
QueueableJobBuilder
setScheduledDateTime(DateTimeInterface|null $dateTime)
No description
at line 88
QueueableJobBuilder
setUniqueId(string $uniqueId)
Define a unique ID which can later be used to lookup this job The ID will checked against your specific job class (no need to pass module name in id)