V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
pdfgo
V2EX  ›  Python

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

  •  
  •   pdfgo · 2019-10-26 22:36:54 +08:00 via Android · 3540 次点击
    这是一个创建于 1615 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题。

    6 条回复    2019-10-27 11:51:37 +08:00
    Trim21
        1
    Trim21  
       2019-10-26 22:39:51 +08:00   ❤️ 1
    默认是线程池吧
    BigBrother1024
        2
    BigBrother1024  
       2019-10-26 22:49:30 +08:00 via Android
    SD10
        3
    SD10  
       2019-10-26 22:53:22 +08:00 via Android   ❤️ 1
    对于任务来说是并行,这就像领导给你们派任务,多个小工一个人领一份工作,同时干,任务多了就在队列里等着分配。
    Trim21
        4
    Trim21  
       2019-10-26 23:10:04 +08:00
    说错了,默认是进程池(
    ClericPy
        5
    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
        6
    SD10  
       2019-10-27 11:51:37 +08:00 via Android   ❤️ 1
    上边说错了,应该是并发。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1385 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:43 · PVG 07:43 · LAX 16:43 · JFK 19:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.