We have a bot that we want triggered every 30 minutes but there are specific times that we cannot run between 2 AM and 6 AM. The cron expression we are currently using is 0 0/30 0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ? * SAT *. We have it kill after 2 hours.
It keeps running until 4:30 AM at times. How can we schedule it to make sure it doesn’t run between 2:00 - 6:00 AM?