Skip to content Skip to sidebar Skip to footer

Internalerror: Current Transaction Is Aborted, Commands Ignored Until End Of Transaction Block

I'm getting this error when doing database calls in a sub process using multiprocessing library. Visit : Pastie InternalError: current transaction is aborted, commands ignored unt

Solution 1:

multiprocessing works (on UNIX systems) by forking the current process. If you have an existing database connection, this will leave the two processes (the current one and the new one) with the same database connection. Trying to use it from both is bad. Create a new database connection in the child process instead.


Post a Comment for "Internalerror: Current Transaction Is Aborted, Commands Ignored Until End Of Transaction Block"