Closed sts-ryan-holton closed 1 year ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Horizon Version
5.21.1
Laravel Version
10.28.0
PHP Version
8.2.10
Redis Driver
PhpRedis
Redis Version
redis:6.2-alpine
Database Driver & Version
MySQL 8.0
Description
:wave: Hi,
I have a meaty Laravel job file which is triggered from my controller. I have Carbon set to log the current time before the job is processed, and then afterwards to get the difference. When I add a carbon log instance to the job's handle method, and run it, I'm seeing between 1-2 seconds of extra time (presumably Horizon not picking the job up fast enough)
If I don't use Horizon, and simply call the job's handle method directly from my controller, this delay is gone.
What am I missing to speed up job pick up here?
Steps To Reproduce
Here's my config for Horizon, but the simplest reproduction is to create a job file: