推荐学习书目
› 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 · 4924 views
    This topic created in 2569 days ago, the information mentioned may be changed or developed.

    如题。

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