You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to sync 2 process using a lock file.
So only one process can run at the same time.
runner_lock_obj = singleton.SingleInstance(lockfile=running_lock_filename)
.. do what ever but here the other file wont run...
runner_lock_obj.del()
.. do what ever but here the other file CAN run...
This works nice, just when I get out of the run I get
[Errno 9] Bad file descriptor
Exception ignored in: <function SingleInstance.__del__ at 0x000001ECB2A58670>
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\site-packages\tendo\singleton.py", line 89, in __del__
SystemExit: -1
I guess it already exited ... can IU avoid this error ?
The text was updated successfully, but these errors were encountered:
I am looking for a way to sync 2 process using a lock file.
So only one process can run at the same time.
runner_lock_obj = singleton.SingleInstance(lockfile=running_lock_filename)
.. do what ever but here the other file wont run...
runner_lock_obj.del()
.. do what ever but here the other file CAN run...
This works nice, just when I get out of the run I get
I guess it already exited ... can IU avoid this error ?
The text was updated successfully, but these errors were encountered: