mongodb - Php工匠队列:work not working but job are inserted

标签 mongodb laravel-5 queue

我对 php artisan queue::work 命令感到不安。

我的命令不起作用,但我的作业已插入作业表但从未执行。

我正在为队列使用 mongodb 驱动程序。

我做错了什么,请给我建议。

最佳答案

在花了半天时间搜索后,我注意到队列不在维护模式下运行。你必须把 --force 放在它的末尾。

--force Force the worker to run even in maintenance mode

因此运行 php artisan queue:work --force 以便在维护模式下运行队列。

参见 https://laravel.com/docs/8.x/configuration#maintenance-mode了解详情。

关于mongodb - Php工匠队列:work not working but job are inserted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41632559/

相关文章:

c - queue.h库中struct的使用

node.js - 如何构建查询以将父文档的字段与嵌入数组文档的字段相关联。使用 MongoDB 聚合运算符

mongodb - 在mongodb中进行分组时如何使用条件计数?

php - Laravel 服务容器是否可以绑定(bind)到类及其所有祖先 - 就像在 Symfony 中一样

php - 如何在 Laravel 5 请求类中使用有时规则

json - 合并预加载结果

python - 对面向队列的函数使用多处理后没有性能提升

node.js - Write关注在node.js的mongodb native 驱动程序中插入文档

linux - 良好的mongodb配置

c++ - 为什么我在此函数中出现段错误?