Quick Node Scheduler question - does the scheduler run on a standard 24 hour clock, or from app deployment

Hi all,

I’m using a number of node schedulers. One of these is time sensitive.

If we take an hourly scheduler for example, what is the starting ‘hour’. For example do all schedulers just run on a 24 hour clock, so, if I use an hourly scheduler it’ll run at the next whole hour or, does it run 1 hour from the time the node app is redeployed?

Thanks!

From what I know CRON expressions do not care about the deployment time.
All expressions are relative to the current date time.
So, if you have a scheduler in Wappler set to run every hour, and you deploy at 15:43, it will run at 16:00. If deployed at 16:03, it will run at 17:00.

1 Like

Perfect, thank you sid - super helpful.

Hello @sid,

have you tried this before ?

Cron expressions rely on the real time clock of the server, sid is right

Unless you found a problem? :thinking:

Hi @Apple
I haven’t tried this situation. That’s why I wanted to be sure.

Yes. I have tested this.
We implemented a custom module to find next run time of a cron expression. That’s when we discovered this.

I am 99% sure Wappler has no custom stuff going on in this regard.

1 Like

thanks @sid . It’s clearer now.

No problem - just wanted confirmation from bigger brains than mine :slight_smile: