What is the best way to prevent scheduled actions from running in Development?

Hi!
I’m begin using scheduled actions. It works well, but one of the drowback is that I don’t wanna it to run from Development or Staging (Testing) servers.
So I have to keep it all disabled, then turn it on before every prod deploy, then turn off again. Seems frustraiting. :sweat_smile: Maybe, there is another workaround?
Should I create feature request for that?

You could set an environment variable and then check for the condition before running.

2 Likes

Thank you, Ken! It works perfect