Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to schedule the data pipeline to run on first Tuesday each month and then 5 days later during night time cet using cron expression

I wanted to create a cron job that runs on first Tuesday every month and then 5 days later of first Tuesday at Night time cet.

like image 861
Rama rao Avatar asked Jan 24 '26 23:01

Rama rao


1 Answers

Tuesday is day_of_the_week 2, and the first week is days 1-7 of the month. Then 5 days later is a Sunday, normally day 0 (but sometimes day 7). This will run the task at 20:00 on the local system time on those days.

0 20 1-7  * 2 run_some_job
0 20 6-12 * 0 run_some_job
like image 59
bn_ln Avatar answered Jan 26 '26 13:01

bn_ln