Django python-rq — DatabaseError SSL error: decryption failed or bad record mac

后端 未结 1 1166
梦谈多话
梦谈多话 2021-02-14 03:21

I\'m using the django-redis and django_rq frameworks to support both redis caching and redis background task processing for my Django application on Heroku. It\'s worked smoothl

1条回答
  •  遥遥无期
    2021-02-14 03:50

    The problem is solved by closing the DB connection at the beginning of each job.

    For example,

    @job
    some_job():
        from django.db import connection
        connection.close()
        some_more_code()
    

    0 讨论(0)
提交回复
热议问题