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
kunimi
V2EX  ›  Python

Celery Once

  •  
  •   kunimi · 2015-02-05 10:45:33 +08:00 · 2995 次点击
    这是一个创建于 3365 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2015-02-07 08:44:10 +08:00
    dongweiming
        1
    dongweiming  
       2015-02-06 23:40:34 +08:00
    虽然点了个赞. 但是实际中感觉用不到 - 为什么会把重复的任务扔到队列里呢?
    kunimi
        2
    kunimi  
    OP
       2015-02-07 08:00:33 +08:00 via Android
    @dongweiming 的确要看应用场景,作者的blog中的例子是客户可能会重复提交PDF生成的请求。
    dongweiming
        3
    dongweiming  
       2015-02-07 08:44:10 +08:00
    那么问题来了, 为什么会让用户重复提交? 以及什么情况下才能提交成功.

    那第一次由于某种原因执行失败了, 在某个间隔期间再也无法进行了 - 为什么要直接对队列做控制 而不是从业务上
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2878 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:29 · PVG 23:29 · LAX 08:29 · JFK 11:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.