Workaround for DB lock OperationalError with sqlite3 backend.
An mpi4py test program with the Python sqlite3 wrapper has no trouble with concurrent DB insertions from several tens of processes. The issue appears to be in the Django-sqlite3 wrapper. This patch simply wraps save() in a loop that intercepts OperationalError until the save is successful.
Please register or sign in to comment