admin管理员组文章数量:1295332
I have a Laravel-based web application with a database job queue connection that has been functioning properly for the past month. However, recently, a problem has arisen where a specific set of jobs are not being recorded in the jobs table.
Upon further investigation, it was found that when jobs are dispatched to the "teleops_default" queue, the CPU gets stuck on that line and is unable to proceed. However, when a different queue name is used, the job is successfully dispatched and written to the jobs table as expected.
Broken code ( teleops_default queue name )
dispatch(new \App\Jobs\Test('data', 'data'))->onQueue('teleops_default');
Working Code ( Different queue name )
dispatch(new \App\Jobs\Test('data', 'data'))->onQueue('teleops_test');
本文标签: Laravel database job not being dispatched for specific queue that has been specifiedStack Overflow
版权声明:本文标题:Laravel database job not being dispatched for specific queue that has been specified - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741615929a2388526.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论