DEV Community

Aldora
Aldora

Posted on

1

Process still running even connection gets killed

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

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay