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

请教一下大家, celery 中使用 cron 表达式是不是无法向 Java 的 Quartz 中实现指定时间触发一个间隔执行的任务,例如设置在 2019-05-01 12:10 后每 2 小时执行一个任务?

  •  1
     
  •   hl0832 · Apr 27, 2019 · 2794 views
    This topic created in 2599 days ago, the information mentioned may be changed or developed.
    2 replies    2019-04-28 22:52:41 +08:00
    wsgfz
        1
    wsgfz  
       Apr 27, 2019
    cron 配置成每两小时执行一次脚本

    在脚本中判断当前时间是否已经过了 2019-05-01 12:10,
    如果过了
    再执行你的任务?
    a852695
        2
    a852695  
       Apr 28, 2019
    在业务入口写一下? cron 是不能指定时间的吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3188 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
    ♥ Do have faith in what you're doing.