如何解决芹菜版本4不同时在Windows中处理多个任务
我正在Windows上使用以下命令运行celery worker:
celery worker -A celery_app -l info -P gevent
在python代码中,配置设置为
app.config.worker_prefetch_multiplier = 1
app.config.task_acks_late = True
每当芹菜工作者收到任务时,它将启动另一个Windows应用程序。因此,当启动该应用程序并向celery worker发出另一个请求时,第二个请求被正在运行Windows应用程序的任务阻止。
Celery工人日志显示并发性:64(gevent)
-------------- celery@test_host v4.4.7 (cliffs)
--- ***** -----
-- ******* ---- Windows-10-10.0.14393-SP0 2020-09-16 20:06:20
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app: celery_app:0x28a0f8f72e8
- ** ---------- .> transport: amqp://test:**@10.1.9.159:5672/test_host
- ** ---------- .> results: redis://10.1.9.159:6379/0
- *** --- * --- .> concurrency: 64 (gevent)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
-------------- [queues]
.> celery exchange=celery(direct) key=celery
有什么办法可以同时处理第二个请求?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。