cron job that will never execute

前端 未结 5 1020
耶瑟儿~
耶瑟儿~ 2020-12-05 22:22

Is there any way to create a cron expression for not running the job at all. I though of using this expression :

0 0 0 1 1 ? 3099

5条回答
  •  隐瞒了意图╮
    2020-12-05 23:05

    If you're still looking for something robust even in the far future, try https://stackoverflow.com/a/13938099/1601531, where I suggest the use of February 31st in crontab entries which are never intended to execute.

    0 0 5 31 2 ?
    

提交回复
热议问题