Support the ongoing development of Laravel.io →
Laravel Jobs
  • Laravel Version: 9.5.1
  • PHP Version: 8.1.3
  • Database Driver & Version: PGSQL (12.9)
  • Queue driver: Redis (with 8 workers on queue "low")

Description:

Random instances of the same Job lead to composer autoload error. (Failed to open stream: No such file or directory). I use pm2 to create the workers, the job doesn't even appear at the screen, just print directly in the storage/logs/laravel.log

Job code: https://prnt.sc/pCtZMRf8Er9f (The backoff seems to work)

First error: https://prnt.sc/om8PCthikwEs Second error (after some tries to fix it): https://prnt.sc/o7EIa2qW6wYO

Storage/logs: https://prnt.sc/P5CL-MkAl5jq

Steps To Reproduce:

Unfortunately I can't reference a repository. The error seems too much random to replicate, sometimes I can run 20 jobs in a row flawless, I tried to test it on my local machine, but the WSL always give a curl timedout.

(The error also happens when I dispatch multiple empty jobs) https://prnt.sc/7z9myHScPrTh After running 3000 jobs on 8 workers, I got 8140 lines of logs of:

include(/home/ubuntu/backend/vendor/composer/../facade/ignition/src/QueryRecorder/Query.php): Failed to open stream: No such file or directory 
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.