loading...

Process still running even connection gets killed

aldora713 profile image ShakalakaB ・1 min read

I used requests to do mass database insertions which take longer than the proxy's time limit. As a result, I had to make multiple requests to finish it, and this made mistaken duplicate insertions even after the code check and block the duplicate data, cause they are basically inserted at the same time.
This is because even the request connection got killed, the process it started is still running. And the multiple requests I made just started parallel processes

Discussion

pic
Editor guide