Answer the question
In order to leave comments, you need to log in
Limit on the number of running scripts?
Good day, I use subprocess to run the script
subprocess.Popen("path/python.py %s &" % stats.id,
shell=True, stdout=subprocess.PIPE)
Answer the question
In order to leave comments, you need to log in
docs.python.org/2/library/fcntl.html - flock
Well, or just run under the console flock.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question