I use django-background-tasks to run some heavy tasks in the background in my Django application. On my local machine everything works fine. However, if I deploy my application in production with Apache and mod_wsgi, the scheduled tasks are not executed. Instead, if I run the command
python manage.py process_tasks in some terminal, the message
'Failed to retrieve tasks. Database unreachable.' is printed every 5 sec or so.
What am I doing wrong? Where/how am I supposed to run "python manage.py process_tasks"?