Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8199 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I think i've FINALLY figured out why my scheduled scripts sometimes crash and other times run fine without any explanation. I have a script that runs every 5 mintues. At scheduled times, it executes another script. Unfortunately, they sometimes execute on top of each other (Another goes while the first is still running). I was wondering if there is any way to "pause" the first script while the second is running. As I'm writing this, i realized i could set up a variable and if/then an exit code of the variable ='s, but still, is there an easier way?

Thanks

-j

Posted

As far as I know, the only way to do this is to setup your own system of semaphores and test to see if one script is running before the other is allowed to execute. We commonly do this with scripts triggered automatically by a barcode scan. We must make sure that a second scan doesn't set the barcode processing in motion a second time, before the first scan is complete.

-bd

Posted

I set up a global field "gIsAScriptRunning" with a value of 1 or 0. If the reoccuring script executes, and the value is one, it just exits, and waits until it's next reoccurance. I'll give that a few days, and see if it's now "happy" ugh.

Thanks

-j

This topic is 8199 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.