Laravel排队::功能不起作用?
队列完成后,我想添加一些其他功能。我正在使用queue :: after
在appServiceProvider
中,但没有触发此功能。我尝试了许多解决方案,这些解决方案在stackoverflow上提供了相同类型的问题,例如重新启动队列工人,清除缓存和COMPOSER DUMP-AUTOLODOD
,但没有得到任何帮助。
public function boot()
{
Queue::after(function (JobProcessed $event) {
\Log::debug("Queue after"); // it should be printed in the logger
});
}
知道我要在哪里出错吗?
I want to add some additional functionality when the queue is finished. I am using the queue::after
function in the AppServiceProvider
but this function is not being triggered. I have tried many solutions which were provided in the same kind of questions on StackOverflow like restarting the queue worker, clearing the cache and composer dump-autoload
but didn't get any help.
public function boot()
{
Queue::after(function (JobProcessed $event) {
\Log::debug("Queue after"); // it should be printed in the logger
});
}
Any idea where am I going wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论