pizida
V2EX  ›  问与答

请问大家是如何管理 crontab 的,有没有比较好的管理方案?

  •  
  •   pizida · May 8, 2018 · 3212 views
    This topic created in 3105 days ago, the information mentioned may be changed or developed.

    RT. 比如在某个脚步执行依赖另一个脚本执行完毕; 比如更优雅地使用 crontab 的定时规则; 不一定推荐工具或组件,有没有好的方案或建议,求大家提供下。

    7 replies  •  2018-05-08 20:54:32 +08:00
    goodryb
    goodryb
    May 8, 2018
    1
    这个应该是调用的关系了吧
    shootsoft
    shootsoft
    May 8, 2018 via iPhone
    2
    你的问题其实分为两部分,如何解决 cron job 之间的依赖,如何提高可用性。

    要解决这两个问题,一般是更加详细的 job 定义,以便扩展为 workflow 以及分布式处理(多个节点协同,消除单点故障以及单点性能不足)。


    建议搜索关键字 distributed cron job

    比如搜到的第一个 https://dkron.io 或者 Facebook 的 https://facebook.github.io/bistro/
    iappled
    iappled
    May 8, 2018
    3
    whenever
    iappled
    iappled
    May 8, 2018
    4
    ansible 之类的
    Aliencn
    Aliencn
    May 8, 2018
    6
    ant2017
    ant2017
    May 8, 2018 via Android
    7
    &&
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   670 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:14 · PVG 04:14 · LAX 12:14 · JFK 15:14
    ♥ Do have faith in what you're doing.