Hi Team,
I would like to know if we can give a trigger condition to a recurring scheduler trigger in such a way that the scheduler will not be triggered between 3 AM IST and 4 AM IST.
I tried with the trigger condition mentioned below but it didn't work.
@not(and(greaterOrEquals(formatDateTime(addHours(utcNow(), 5.5), 'HH:mm'), '03:00'), less(formatDateTime(addHours(utcNow(), 5.5), 'HH:mm'), '04:00')))
In fact the scheduler failed to even trigger after I saved this condition. I had to remove the condition for the trigger to work again. It is running fine with a 3 minute frequency but I am trying to utilize the 'trigger condition' option to give a downtime between 3 AM and 4 AM so that remote server restart can be done in that period.
If you have alternate suggestions, please let me know on the same.