cron作业,永远不会执行 [英] cron job that will never execute

查看:1927
本文介绍了cron作业,永远不会执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法创建一个cron表达式,以便不运行该作业。
我使用这个表达式:

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

0 0 0 1 1 ? 3099

上述表达式将在3099年运行。是否有其他方法可以禁用此作业。

The above expression will run on year 3099. Is there any other way to disable the job.

感谢。

推荐答案

如果你仍然在寻找一些强大的,请尝试 http://stackoverflow.com/a/13938099/1601531 ,其中我建议使用 2月31日的crontab条目,从不打算执行。

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

这篇关于cron作业,永远不会执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆