Gateway Scheduled Scripts not running

Hi all,

I have a gateway scheduled script, configured every minute, enabled, etc. And for some reason, it is not running. I've added a simple code to check if it's running and it isn't. I check the logs, and there is nothing there. What could be the reason?

def onScheduledEvent():
system.util.getLogger("ScheduledScript").info("Script is running")

I've also added errors in the script to see if the errors would get logged, and nothing is getting logged, which indicates that the script isn't running.

You have declared a function. Is the function being called?

This is the script, just to check that the script is actually running. But nothing gets logged. It's meant to be called every minute?

...

It's a scheduled event script. It gets called based on a specific time. In my case, it's meant to be called every minute. In the script you define the function, and in settings you specify how often the script is going to be called.

image

Ah yes, I haven't actually used a scheduled script before sorry.

What version of Ignition are you on? It's working fine for me in 8.1.35

Did you remember to save after you created it?

image

What project have you defined this in? Is it runnable? (ie not inheritable)

Cheers for that. Yes, I was creating the gateway scripts in the global project (which was not inheritable). I knew it would be something simple! Thanks!

1 Like