The simpler thing, in my opinion, is to just call a process and do this complicated check in the process.
The scheduler checks jobs every minute.
So if you have a scheduler task with something like
IF current Date is greater than January 1, 2024, then run processA
It will check that every minute and run the process.
It doesn’t guarantee which second in the minute it will run it, but it will get called/evaluated every minute.
Then, in the process, you could call your desired process, only on even minutes, that way it’s gonna run every two minutes.
Or if you need access to Other variables, put them in that first process instead of the scheduler and you can do just about anything you want.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Thanks guys. Yeah.. I was gonna so something like what Jaymer said. It's not a priority atm though.
Good to know though:
Jaymer wrote: ↑Sun Jan 21, 2024 8:26 pm
....
The scheduler checks jobs every minute.
...
So in essence you could just have One process that runs from the scheduler for tasks you wanna have flexibility on, which then controls when/how often all your actual scheduled tasks are run, where those frequencies/times could then either be stored in SystemSettings, or in a BO.
Not to mention a switch which could turn off all scheduled tasks at once.