I have a job which has its first line Log::warning("start: $id"); and a last line Log::warning("end: $id"); In which I select a image data from database and send file from temporary directory to aws s3 bucket.
Whenever an image is uploaded, I push this job to queue with the id of corresponding table row.
Jobs gets a fail randomly (some pass some fail) even before logging "start $id" line. which makes me feel like there is something going on before even firing my job method.
And the oddest thing is if i requeue failed ones again in a for loop, some of them passes. I run my manual push calls repeatedly and all jobs get done eventually.
I tried try-catching whole function to log warnings but no logs written to queue. How can i trace the failing reason?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community