推荐学习书目
› 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
miniyao
V2EX  ›  Python

多个 Flask 实例,使用了同一个 celery 异步队列,会造成任务冲突吗?

  •  
  •   miniyao · Dec 22, 2020 via Android · 2682 views
    This topic created in 2119 days ago, the information mentioned may be changed or developed.
    由于一台 flask 服务器性能不够,计划再增加 3 台 flask 应用服务器,原来服务器上使用了 celery 异步队列,在 celery_worker 中都有关联 flask 的 app 上下文:

    app.app_context().push()

    现在把 flask 服务器数量扩充,这会导致 flask 的 app 上下文也横向扩展了,会造成 celery_worker 中队列任务冲突 /重复吗?
    2 replies  •  2020-12-22 09:23:58 +08:00
    ebingtel
        1
    ebingtel  
       Dec 22, 2020
    celery beat 是一个 应该没问题
    Latin
        2
    Latin  
       Dec 22, 2020
    celery once 了解一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   898 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    ♥ Do have faith in what you're doing.