On 11-May-07, at 2:45 AM, David Xiao wrote:
I have keep the id field be unique.
Actually I found the problem is due to following Python code:
P = subprocess.Popen(arguments, ....)
It seems that when the program ends, the sub-process started by
that call is not finish yet. And I guess that's why staticis shows
"commit but not adddoc"
Anyone have similar issue?
When a unix process terminates, its child processes are also
terminated (well, it depends on exactly how you created them).
Actually, I'm not sure about that on further thought. However, it is
best to wait for your processes to complete. After spawning them
all, you can use P.wait() to wait for the processes individually, or
os.wait() to wait for any of them to complete.
Of course, since you are using python anyway, it would be best to open
() the xml file and post it yourself (threadedly if you want some
concurrency).
regards,
-Mike