TypeError: autodiscover_tasks() takes at least 2 arguments (1 given) celery code example
Example: TypeError: autodiscover_tasks() takes at least 2 arguments (1 given) celery
from django.apps import apps
app.autodiscover_tasks(lambda: [n.name for n in apps.get_app_configs()])