Python 2.7 多处理、Django和OperationalError:SSL系统调用错误:检测到EOF

Python 2.7 多处理、Django和OperationalError:SSL系统调用错误:检测到EOF,python-2.7,django-models,Python 2.7,Django Models,我正在运行多处理,在每个任务结束时,我用状态更新数据库 我是这样存钱的 def save(self, *args, **kwargs): super(ShopPushQueue, self).save(*args, **kwargs) 但是我得到了以下错误 DatabaseError: server closed the connection unexpectedly This probably means the server terminated abnormally

我正在运行多处理,在每个任务结束时,我用状态更新数据库

我是这样存钱的

def save(self, *args, **kwargs):
    super(ShopPushQueue, self).save(*args, **kwargs)
但是我得到了以下错误

DatabaseError: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.

        cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
      File "/var/www/venv/local/lib/python2.7/site-

packages/django/db/models/sql/compiler.py", line 894, in execute_sql
    raise original_exception
OperationalError: SSL SYSCALL error: EOF detected
我想我知道这个连接已经不可用了,但我不明白为什么。这在不使用多处理时效果很好

我应该做些什么来刷新数据库连接吗?还是维持它

谢谢