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

celery 中的 state,event 的含义、作用

  •  
  •   icer · Mar 16, 2014 · 4270 views
    This topic created in 4583 days ago, the information mentioned may be changed or developed.
    最近有想法利用celery做一个项目,于是找官方文档来看,发现自己没怎么理解state、event的含义。想要理解这个东西的原因是我想把任务的状态捕捉下来,也就是是我的所有任务都要永久保存,能查看已经发出的任务的状态。自己刚开始用ArsyncResult(task_id).result来获取,发现通过给tornado的HTTP请求传一个task_id获取的状态永远是PENDING,于是找到了flower,然后再看它的源码,发现是通过celery.events.state.State.tasks_by_timestamp()来获取,于是乎,被state、与event这个概念都搞糊涂了,哪位有经验麻烦给解释一下,谢谢啦
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   870 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:12 · PVG 03:12 · LAX 12:12 · JFK 15:12
    ♥ Do have faith in what you're doing.