28.05.2022, 18:44
Hello all, how i could prevent to run event script if it is already in process?
thank you
thank you
Script run prevention
|
28.05.2022, 18:44
Hello all, how i could prevent to run event script if it is already in process?
thank you
30.05.2022, 06:38
See this example: https://forum.logicmachine.net/showthrea...2#pid16762
Change the timeout from 5 seconds to 0.1
30.05.2022, 18:18
(30.05.2022, 06:38)admin Wrote: See this example: https://forum.logicmachine.net/showthrea...2#pid16762 thanks for advice. it seams that semaphore doesn't starts even with simple code below i receiving log error* arg: Code: require('sem')
31.05.2022, 09:52
stat, err are assigned to what the function returns. Since your function does not return anything stat and err are nil and you get empty "error" entry in Logs.
Use this example and put your actual script code inside of the scriptfn function. In the current state this example will simply block execution of any other instances of the same script for 10 seconds. It will also propagate any errors from scriptfn so they are visible in the Error log. Code: require('sem') |
« Next Oldest | Next Newest »
|