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 18
__construct(array $options = [])
Create a new watcher instance.
at line 42
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
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 124
void
recordFailedJob(JobFailed $event)
Record a queue job has failed.
at line 170
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 193
protected array
defaultJobData(string $connection, string|null $queue, array $payload, array $data)
Get the default entry data for the given job.
at line 208
protected array
data(array $payload)
Extract the job "data" from the job payload.
at line 222
protected array
tags(array $payload)
Extract the tags from the job payload.
at line 236
protected void
updateBatch(array $payload)
Update the batch.
at line 266
protected mixed
getCommand(array $data)
Get the command from the given payload.
at line 284
protected string|null
getBatchId(array $data)
Get the batch ID from the given payload.