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

Flask中的定时调度模块?

  •  
  •   timchou · Mar 28, 2013 · 8728 views
    This topic created in 4966 days ago, the information mentioned may be changed or developed.
    有很多机器,每台上面都有很多脚本,现在需要:

    1.对外提供调度功能,比如通过url来调度一个脚本。
    2.对内,这些脚本中,有些需要定时调度,比如每天几点调一次,现在我们是用crontab做的。


    以上第一点,我觉得用web框架来做很合适,定好路由规则,对应脚本。

    对于第二点,因为想能有集中式的地方能管理这些crontab,所以需要能自己实现调度。那基于第一点,我打算用flask来做,那请问下flask中,有没有什么调度任务的模块的?
    3 replies  •  1970-01-01 08:00:00 +08:00
    SErHo
        1
    SErHo  
       Mar 28, 2013
    Python 定时调度的只知道这个:http://pythonhosted.org/APScheduler/
    应该和 Flask 很容易集成。
    solos
        2
    solos  
       Mar 28, 2013
    swulling
        3
    swulling  
       Mar 28, 2013
    @SErHo APScheduler不错,比较简单
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:54 · PVG 21:54 · LAX 05:54 · JFK 08:54
    ♥ Do have faith in what you're doing.