Gatway Event Scripts Changing Time Executing

Hey friends,

I’m facing a problema, I’ve create a Gateway event script in a project to execute each 43,200,000 ms (12 hours). It works for some days. Strangely after some days the execution time changes, the problem is that I need a fixed hour to run this function, you can look in the below log the generating times.
18-10-03 01:16:24 - Generating…
18-10-03 01:16:24 - Generating…
18-10-03 13:16:24 - Generating…
18-10-03 13:16:24 - Generating…
18-10-04 01:16:24 - Generating…
18-10-04 01:16:24 - Generating…
18-10-04 13:16:24 - Generating…
18-10-04 13:16:24 - Generating…
18-10-05 01:16:24 - Generating…
18-10-05 01:16:24 - Generating…
18-10-05 21:39:18 - Generating…
18-10-05 21:39:18 - Generating…
18-10-06 09:39:18 - Generating…
18-10-06 09:39:18 - Generating…
18-10-06 21:39:18 - Generating…
18-10-06 21:39:18 - Generating…
18-10-07 09:39:18 - Generating…
18-10-07 09:39:18 - Generating…
18-10-07 21:39:18 - Generating…
18-10-07 21:39:18 - Generating…
18-10-08 09:39:18 - Generating…
18-10-08 09:39:18 - Generating…
18-10-08 14:01:35 - Generating…
18-10-08 14:01:38 - Generating…
18-10-09 02:06:41 - Generating…
18-10-09 02:06:41 - Generating…
18-10-09 14:06:41 - Generating…
18-10-09 14:06:41 - Generating…
18-10-10 02:38:24 - Generating…
18-10-10 02:38:24 - Generating…
18-10-10 14:38:24 - Generating…
18-10-10 14:38:24 - Generating…

The time change vary.

Could someone help me with this issue?

Thank you very much!

Check out this recent discussion of a similar requirement:

1 Like

You can start it at 4 PM, the lapse could be 86400000 ms (24h). Use the Fixed Rate property.

Thanks!

There’s no way to “start” a timer event at a particular time. The interval starts when the gateway starts up. As you’ve noted, events can be missed or delayed. You need a different approach, like the solution I linked, which could be adapted to your case.

1 Like

Great!

Thank you very much!