Unrecoverable error: TypeError in celery on heroku

I deployed my django application to heroku and I need periodic tasks in it. versions: django-celery-beat==2.4.0, celery==5.2.7, redis==4.4.2, kombu==5.2.4 These are screenshots of my traceback

https://i.stack.imgur.com/98icL.png
https://i.stack.imgur.com/8LQZU.png
https://i.stack.imgur.com/U3kB7.png

celery.py:

import os
from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nftion.settings")
app = Celery("nftion")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()

I tried different versions of celery, redis, kombu and nothing worked

Back to Top