如何安排詹金斯的工作每4小时10分钟

时间:2022-04-17 19:14:49

I made jobs to start at every 4 hours H */4 * * * But I can't schedule at 4:10 I tried 10 */4 * * * and H/10 */4 * * * Unfortunately no luck

我每4小时做一次工作,但是我不能把时间安排在4点10分

1 个解决方案

#1


2  

Configuring a fixed time is very simple:

配置固定时间非常简单:

10 4 * * *

Your 10 */4 * * * means "run it every 4 hours, at minute 10".

你的10 */4 * * *意味着“每4小时运行一次,每分钟10分钟”。

See also http://www.adminschoice.com/crontab-quick-reference/ for reference.

参见http://www.adminschoice.com/crontab-quick-reference/以获得参考。

EDIT

Sorry, from the description it seems you want to run it at exactly 4.10, but I then realized that in the title you say something different: every 4h and 10'. Do you mean e.g. at [1.10, 5.20, 9.30]? If so, try */10 */4 * * *.

抱歉,从描述来看,你似乎想在4点10分运行它,但我后来意识到在标题中你说了一些不同的东西:每4h和10’。你是说在[1.10,5.20,9.30]?如果是的话,试试*/10 */4 * * *。

Please provide an example with a sequence of times you expect, e.g. [2.10, 3.20, 4.30], so that it's more clear what you want.

请举例说明您所期望的时间序列,例如[2.10,3.20,4.30],以便更清楚地了解您想要什么。

#1


2  

Configuring a fixed time is very simple:

配置固定时间非常简单:

10 4 * * *

Your 10 */4 * * * means "run it every 4 hours, at minute 10".

你的10 */4 * * *意味着“每4小时运行一次,每分钟10分钟”。

See also http://www.adminschoice.com/crontab-quick-reference/ for reference.

参见http://www.adminschoice.com/crontab-quick-reference/以获得参考。

EDIT

Sorry, from the description it seems you want to run it at exactly 4.10, but I then realized that in the title you say something different: every 4h and 10'. Do you mean e.g. at [1.10, 5.20, 9.30]? If so, try */10 */4 * * *.

抱歉,从描述来看,你似乎想在4点10分运行它,但我后来意识到在标题中你说了一些不同的东西:每4h和10’。你是说在[1.10,5.20,9.30]?如果是的话,试试*/10 */4 * * *。

Please provide an example with a sequence of times you expect, e.g. [2.10, 3.20, 4.30], so that it's more clear what you want.

请举例说明您所期望的时间序列,例如[2.10,3.20,4.30],以便更清楚地了解您想要什么。