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 · 2996 次点击
    这是一个创建于 3366 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   我们的愿景   ·   实用小工具   ·   5279 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.