How to tell if a Timer is currently running?

Hi folks,

This was probably the 3rd or 4th time I needed to code this logic: how to tell if a given Timer is currently running. I couldn't find anything in the Community, so I'm sharing this small example with you.

Would you implement this in a different approach? I couldn't find any use for the Timer runtime properties, for example...


Hi Pedro.

That's the way we've also implemented to determine if a timer is running.

One extra info, if we want to determine if an active timer will run in the future, if the timer has no schedule (in Service Center the Next Run will show as "the timer has no schedule"), the value of "NextRun" will not be "#1900-01-01 00:00:00#" as one might expect, but instead "#3000-01-01 00:00:00#".
Thanks Tiago,

Honestly appreciate the extra info.

Also, in case anyone else hasn't yet read it, please check the Timers and Asynchronous Processes technote. It has interesting info about Timers, their architecture and their data model.