nodenacci's avatar

Can Laravel Jobs $timeout be set programmatically?

I have an SMS system that uses redis queues to send sms, emails and extracting file uploads. Since am using jobs, the number of jobs the system dispatches varies. Like at some point it maybe a single SMS, hundreds of SMS or thousands of SMS. I found out that for many SMS to jobs fail because of timeout.

Can it be possible so that when i dispatch an SMS job, be able to calculate the $timeout and update it so that the handle() method processing doesnt timeout in case of bulks. Thanks

0 likes
1 reply
nodenacci's avatar

My reasoning was okay it solved the issue. Hope this helps someone.

Please or to participate in this conversation.