Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我有两个 cronjobs 如下,
0 */6 * * * 根作业1 0 */2 * * * 根作业2
0 */6 * * * 根作业1
0 */2 * * * 根作业2
我需要避免在 job1 运行时运行 job2。有没有办法从 job2 cron 中排除时间(00 00、06 00 等)。
谢谢。
不,没有排除语法。将工作 2 更改为:
0 2,4,8,10,14,16,20,22 * * * root job2