推荐学习书目
› 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 · Oct 26, 2019 via Android · 4807 views
    This topic created in 2530 days ago, the information mentioned may be changed or developed.

    如题。

    6 replies  •  2019-10-27 11:51:37 +08:00
    Trim21
        1
    Trim21  
       Oct 26, 2019   ❤️ 1
    默认是线程池吧
    jmperdev
        2
    jmperdev  
       Oct 26, 2019 via Android
    SD10
        3
    SD10  
       Oct 26, 2019 via Android   ❤️ 1
    对于任务来说是并行,这就像领导给你们派任务,多个小工一个人领一份工作,同时干,任务多了就在队列里等着分配。
    Trim21
        4
    Trim21  
       Oct 26, 2019
    说错了,默认是进程池(
    ClericPy
        5
    ClericPy  
       Oct 26, 2019
    很多东西搜一下省多少字
    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  
       Oct 27, 2019 via Android   ❤️ 1
    上边说错了,应该是并发。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:33 · PVG 03:33 · LAX 12:33 · JFK 15:33
    ♥ Do have faith in what you're doing.