JobWatcher
class JobWatcher extends Watcher
Properties
| protected array<int, class-string> | $ignoredJobClasses | The list of ignored jobs classes. |
Methods
Record a job being created.
Get the current facade context for the job entry.
Get the default entry data for the given job.
Extract the job "data" from the job payload.
Extract the tags from the job payload.
Update the batch.
Get the command from the given payload.
Get the batch ID from the given payload.
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 42
void
register(Application $app)
Register the watcher.
at line 57
IncomingEntry|null
recordJob(string $connection, string|null $queue, array $payload)
Record a job being created.
at line 91
void
recordProcessedJob(JobProcessed $event)
Record a queued job was processed.
at line 125
void
recordFailedJob(JobFailed $event)
Record a queue job has failed.
at line 173
protected array|null
facadeContext()
Get the current facade context for the job entry.
Returns both visible and hidden context since jobs receive both, and "hidden" only means hidden from log output, not from Telescope. Returns null when no context exists.
at line 196
protected array
defaultJobData(string $connection, string|null $queue, array $payload, array $data)
Get the default entry data for the given job.
at line 211
protected array
data(array $payload)
Extract the job "data" from the job payload.
at line 225
protected array
tags(array $payload)
Extract the tags from the job payload.
at line 239
protected void
updateBatch(array $payload)
Update the batch.
at line 275
protected mixed
getCommand(array $data)
Get the command from the given payload.
at line 293
protected string|null
getBatchId(array $data)
Get the batch ID from the given payload.