I am using the JobProcessing, JobProcessed and JobFailed to populate a queue logs table.
I would like to also listen for an event as jobs are pushed to the queue. Does this exist?
I see from running:
\Redis::lrange('queues:mws', 0, -1)
That a pushedAt parameter exists, but I am unsure how to get this in an event prior to the job actually being processed.
This is fundamentally in order to check that my queues are all:
- a) actually running (the workers have not stopped).
- b) the job processing time is not too long.