This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Cancel event-scripts
#1
Is there a way to cancel running events scripts e.g.
button for day scene and night scene which sends 0 or 1.

Every execute of command first cancel all instances of this script and after run new instances which run code.

Every script executes ~20 commands and waits 0.5s(pause between commands) or until one zone ends the motion. Whole scene continues a few minutes.

So I think this is something different from not allowing to start new same script by semaphore lock. I can save process id and then kill all existing processes which would be stored in some place but then probably there would be some problems with race condition.


Maybe there is some more elegant way.
Done is better than perfect
Reply


Messages In This Thread
Cancel event-scripts - by buuuudzik - 08.02.2019, 09:23
RE: Cancel event-scripts - by Daniel - 08.02.2019, 09:53
RE: Cancel event-scripts - by admin - 08.02.2019, 10:24
RE: Cancel event-scripts - by buuuudzik - 08.02.2019, 14:52
RE: Cancel event-scripts - by Daniel - 08.02.2019, 14:56
RE: Cancel event-scripts - by buuuudzik - 08.02.2019, 15:11
RE: Cancel event-scripts - by admin - 10.02.2019, 11:32
RE: Cancel event-scripts - by buuuudzik - 10.02.2019, 12:18
RE: Cancel event-scripts - by admin - 11.02.2019, 12:45
RE: Cancel event-scripts - by JASK - 07.01.2023, 00:14
RE: Cancel event-scripts - by buuuudzik - 11.02.2019, 14:14
RE: Cancel event-scripts - by khalil - 08.01.2023, 07:48
RE: Cancel event-scripts - by admin - 11.02.2019, 15:40
RE: Cancel event-scripts - by apkotelnikov - 12.02.2019, 23:26
RE: Cancel event-scripts - by buuuudzik - 13.02.2019, 07:37
RE: Cancel event-scripts - by admin - 13.02.2019, 07:49
RE: Cancel event-scripts - by admin - 09.01.2023, 07:49
RE: Cancel event-scripts - by JASK - 30.01.2023, 22:56
RE: Cancel event-scripts - by admin - 31.01.2023, 07:50

Forum Jump: