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

后端 未结 1 1179
梦谈多话
梦谈多话 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)
提交回复
热议问题