다중 프로세스 라이브러리를 사용하는 하위 프로세스에서 데이터베이스 호출을 수행 할 때이 오류가 발생합니다.InternalError : 현재 트랜잭션이 중단되고 트랜잭션 블록이 끝날 때까지 명령이 무시됩니다.
방문일 : Pastie
InternalError: current transaction is aborted, commands ignored until end of transaction block
이 web.py
에 psycopg2
드라이버를 사용하여 Postgre 데이터베이스이다.
multiprocessing.Process
대신 threading.Thread
을 사용하면이 오류가 발생하지 않습니다.
문제를 해결하는 방법을 알려주세요.