我怎样才能创建一个周一每2周重复一次的cron时间表? [英] How can I create a cron schedule that repeats every 2 weeks on Mondays?

查看:744
本文介绍了我怎样才能创建一个周一每2周重复一次的cron时间表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个周一每2周重复一次的cron时间表。 Cronmaker.com没有这方面的cron表达式。请指教。

I need to create a cron schedule that repeats every 2 weeks on Mondays. Cronmaker.com doesn't have the cron expression for this. Please advice.

推荐答案

正如评论中所讨论的,我不相信CRON可以代表你想要的。如果你想让它今天开始,然后在星期一每两周做一次,我会建议一个选项是2个触发器。有一个DailyTimeIntervalScheduleBuilder,但我认为它不会让你有一个每周的间隔。



1触发器现在可以运行,然后一个可以在下周一开始,然后每2周重复一次。
As discussed in comments, I don't believe CRON can represent what you want. If you want it to start today and then do every 2 weeks on a Monday I would suggest one option would be to 2 triggers then. There is a DailyTimeIntervalScheduleBuilder but I don't think it lets you have a weekly interval.

1 trigger can be to run now and then one to start the following Monday and then repeat every 2 weeks.


这篇关于我怎样才能创建一个周一每2周重复一次的cron时间表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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