Support the ongoing development of Laravel.io →
posted 10 years ago
Queues

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?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

hctopcu hctopcu Joined 13 Jun 2014

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.