celery 在默认队列情况下,开多个 worker,请问是并行处理还是串行处理的?

2019-10-26 22:36:54 +08:00
 pdfgo

如题。

3574 次点击
所在节点    Python
6 条回复
Trim21
2019-10-26 22:39:51 +08:00
默认是线程池吧
BigBrother1024
2019-10-26 22:49:30 +08:00
SD10
2019-10-26 22:53:22 +08:00
对于任务来说是并行,这就像领导给你们派任务,多个小工一个人领一份工作,同时干,任务多了就在队列里等着分配。
Trim21
2019-10-26 23:10:04 +08:00
说错了,默认是进程池(
ClericPy
2019-10-26 23:52:32 +08:00
很多东西搜一下省多少字
The Celery worker itself does not process any tasks. It spawns child processes (or threads) and deals with all the book keeping stuff. The child processes (or threads) execute the actual tasks. These child processes (or threads) are also known as the execution pool.
SD10
2019-10-27 11:51:37 +08:00
上边说错了,应该是并发。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/613301

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX