Cron expression for every 30min, between 29th and 6th day of the month

Hi all

Cron expression for every 30mins from 5AM till 5PM, but only on 29th, 30th 31st, 01st, 02nd, 03rd, 04th, 05th, 06th day of the month.

Thank you in advance!

@NITECKA-KUBICKA_Malgorzat

For example, if you were to implement this in a Unix-like environment with tools like cron, you might use two expressions:

  1. For Days 29th to 31st:
*/30 5-16 29-31 * * /path/to/your/command
  1. For Days 1st to 6th:
*/30 5-16 1-6 * * /path/to/your/command

if you are going to use the Cron expression in orchestrator scheduler. you can use the below.

0/30 5-16 29-6 * *

Hope it helps!!!

1 Like

Hi
Sth must be missing?

since we need to schedule for two different month , basically in cron expression we can schedule for a month with various date. Better you can schedule two process with different schedule like the below.

1st schedule for 29-31st date.
0/30 5-16 29-31 * *
2nd schedule for 1-6th date
0/30 5-16 1-6 * *

if you want to use for the specify dates in the same month you can use like the below
0/30 5-16 1-6,29-31 * *

Still not able to save trigger



@NITECKA-KUBICKA_Malgorzat

0 0/30 5-16 29-31,1-6 * ?

Hi @NITECKA-KUBICKA_Malgorzat

Cron Expression: 0 30 5-17 1,2,3,4,5,6,29,30,31 * ? *

Hope it helps!!

Thank you so much, and are you able to advise one more.
If I would like to keep the same rules however run the process every 1.5h instead of every 30min?

Hi @NITECKA-KUBICKA_Malgorzat

can you please try with below cron expression.

0 30 5-16/1 29-31,1-6 * ?

@NITECKA-KUBICKA_Malgorzat

0 0/90 5-16 29-31,1-6 * ?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.