问题标签 [cronexpression]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ubuntu-12.04 - 在不同的时间运行不同的 cron 作业
我有两个 cron 作业,第一个应该每分钟执行一次,第二个应该每两分钟执行一次。
在我的 crontab 文件中
我试过这个,但两个工作每分钟都运行一次。
cron - Quartz Document and Wiki - Contradict on Cron Expression for Day of Month field
Here in wiki
http://en.wikipedia.org/wiki/CRON_expression#CRON_expression
under subheading "Predefined scheduling definitions"
Its mentioned that "day of week (0 - 7) (0 or 7 are Sunday, or use names)"
its referring 0 or 7 as Sunday
and under subheading "CRON expression"
its referring "the last Friday" ("5L") of a given month. In the day-of-month field,
but the Quartz Documentation
here http://quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger
Contradicts things its saying
"Day of week 1-7 or SUN-SAT" (its not from 0-7 as mentioned in wiki)
and in the Special Characters subheading
its referring "6L" means "the last friday of the month" (In wiki its 5L)
So my question is
- Which one is correct ?
- Are both of these are correct in their own context ? (meaning quartz for only quartz and in wiki for unix based os)
cronexpression - 如何编写多个 cron 表达式
周一到周六晚上 7 点到早上 9 点执行工作,周日全天执行。
我尝试输入多个 cron 表达式,但它不起作用。谁能帮我解决这个问题?
automation - Jenkins/Hudson 构建计划周期跨越午夜(晚上 9 点到凌晨 2 点)
我想在 Jenkins 中安排一份工作,在晚上 18 点到凌晨 2 点之间的某个时间运行。
所以我在定期生成/计划字段中输入了以下公式:
H H(18-2) * * *
但是,当我保存作业时,有一个例外:
我输入时出于测试目的:
H H(0-2) * * *
它工作正常。
你能告诉我有什么问题吗?
c# - 石英作业未按预期触发
我在我的 .NET 应用程序中遵循cronTrigger表达式,每 45 分钟触发一次这项工作......
然而,它每 15 分钟和 45 分钟触发一次……例如,它触发如下
下午 2:15 下午 3:00 下午 3:15 下午 4:00 下午 4:15 下午 5:00
我只希望它在2:15、3:00、3:45、4:30等时触发。
谢谢
cron - 使用 cron 实现“从 12:24:20 到 16:20:56 每 5 分钟”
如何实现这样的 cron 作业:
从 12:24:20 到 16:20:56 每 5 分钟运行一次
或者是否有关于 Python 的解决方案,我使用包APScheduler
quartz-scheduler - Cron 表达式 - 在开始时间后每小时运行一次
我想在某个开始时间后每小时运行一次 cron 作业。目前我的 cron 工作表达是
(秒、分、小时由用户选择传入)
作业在正确的时间开始,每小时运行一次,直到午夜,然后停止,直到第二天的时间,然后恢复。如何让工作持续运行而不是在午夜停止?
我知道我可以将表达式更改为
但它不会考虑开始时间。它只会每小时运行一次。
提前致谢, 丰富
java - Quartz Scheduler:在每月的倒数第二天安排作业
我需要在一个月的最后一天和/或第三天运行一份工作(e.g. 30.05.2013, 29.06.2013, 30.07.2013)
。
我知道我可以在一个月的最后一天运行一份工作,例如
我需要的是类似
对于我缺少的这种调度,是否有任何“内置”选项?
如果是这样,如何使用它?
cron - 指定 cron 作业的任意开始和结束时间
对于 Quartz Cron,是否可以指定一个对应于以下内容的 cron 表达式:
Run every 6 minutes, starting from 9:12 AM until 5:37 PM.
我试图编写 cron 表达式0 12-37/6 9-17 ? * *
,但这每小时只运行一次。我也明白cron 表达式0 /6 9-17 ? * *
对应于Run every 6 minutes between the hours of 9 AM and 5 PM
.
但是有没有办法限制该 cron 表达式的开始和结束分钟?更一般地说,我可以指定一个任意的开始和结束时间,让相关作业每n
隔一段时间运行一次吗?
quartz-scheduler - Quartz Cron 字符串理解问题
我目前有这个石英 cron 字符串 0 0/35 11-13 1/1 * ?*。现在它通常的意思是在上午 11 点到下午 1 点之间每 35 分钟每 1 天发生一次。至少从我的理解来看,这就是它的意思。虽然当我查看可能的运行时间时,我得到了这些。
- 2013 年 6 月 8 日上午 11:00:00
- 2013 年 6 月 8 日上午 11:35:00
- 2013 年 6 月 8 日下午 12:00:00
- 2013 年 6 月 8 日下午 12:35:00
- 2013 年 6 月 8 日下午 1:00:00
这对我来说没有意义。它似乎在整点重置。无论如何,这不会发生吗?我希望工作在上午 11 点运行,然后是上午 11:35,然后是下午 12:10,而不是下午 12 点。
任何和所有的帮助将不胜感激。