I have a requirement wherein i have to run a process with a interval of 7 days.
And on the 7th day, the process should run at 2 PM EST.
Is there any configuration which will meet this requirement.
P7D - will run on every 7 day,
PT2H - will run on every 2 Hour,
PT1M - will run on every 1 minute,
But combination of this lets say PT7D2H30M will run on every 7th day, 2.30 AM ?
And also this should run on specific timezone irrespective of server timezone, lets say the server timezone is UTC & requirement time is EST.
You can use cron expressions and set the time of running in the server zone (if you know that all your servers are running in the same zone). You can also manually set the timezone for the Java application to a fix value.