Reputation: 11
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, despite of the job not being processed at the pm2 logs)
EmptyJob: https://prnt.sc/7z9myHScPrTh (For later testing purposes)
Storage/logs: https://prnt.sc/P5CL-MkAl5jq
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. (In my local machine, the Empty Job failed once, despite not having any code at all)
(The error also happens when I dispatch multiple empty jobs)
https://prnt.sc/7z9myHScPrTh
After running 3000 EmptyJobs 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
Upvotes: 0
Views: 105
Reputation: 11
Turns out that this was a bad cache from opcache, rebooting the machine solved the issue, if you are facing the same issue, clearing the opcache may work.
Upvotes: 1