JobWatcher
class JobWatcher extends Watcher
Properties
| protected array<int, class-string> | $ignoredJobClasses | The list of ignored jobs classes. |
Methods
Hide query credentials without changing unrelated URL bytes.
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 44
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
in
Watcher at line 55
protected string
hideQueryParameters(string $uri)
Hide query credentials without changing unrelated URL bytes.
at line 59
IncomingEntry|null
recordJob(string $connection, string|null $queue, array $payload)
Record a job being created.
at line 94
void
recordProcessedJob(JobProcessed $event)
Record a queued job was processed.
at line 127
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 228
protected array
tags(array $payload)
Extract the tags from the job payload.
at line 242
protected void
updateBatch(array $payload)
Update the batch.
at line 272
protected mixed
getCommand(array $data)
Get the command from the given payload.
at line 290
protected string|null
getBatchId(array $data)
Get the batch ID from the given payload.