Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56718
| Date | 2013-10-11 17:44 -0600 |
|---|---|
| Subject | Inter-process locking |
| From | Jason Friedman <jsf80238@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1025.1381541497.18130.python-list@python.org> (permalink) |
I have a 3rd-party process that runs for about a minute and supports only a single execution at a time. $ deploy If I want to launch a second process I have to wait until the first finishes. Having two users wanting to run at the same time might happen a few times a day. But, these users will not have the skills/patience to check whether someone else is currently running. I'd like my program to be able to detect that "deploy" is already running, tell the user, wait a minute, try again, repeat. I do not know whether anyone has had success with http://pythonhosted.org/lockfile/lockfile.html. I supose I could use http://code.google.com/p/psutil/ to check for a process with a particular name.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Inter-process locking Jason Friedman <jsf80238@gmail.com> - 2013-10-11 17:44 -0600
Re: Inter-process locking Piet van Oostrum <piet@vanoostrum.org> - 2013-10-12 00:15 -0400
Re: Inter-process locking Jason Friedman <jsf80238@gmail.com> - 2013-10-12 22:42 -0600
Re: Inter-process locking Piet van Oostrum <piet@vanoostrum.org> - 2013-10-13 08:46 -0400
Re: Inter-process locking Jason Friedman <jsf80238@gmail.com> - 2013-10-18 20:08 -0600
csiph-web