Answer the question
In order to leave comments, you need to log in
How to get a list of registered tasks in celery?
Colleagues, tell me how to get a list of tasks in celery. It's written in the config
CELERY_IMPORTS = ('common.background.tasks', 'st.background.tasks', )
from celery import current_app
>>> current_app.tasks
{'celery.chain': <@task: celery.chain of app:0x370b250>, 'celery.chord': <@task: celery.chord of app:0x370b250>, 'celery.chunks': <@task: celery.chunks of app:0x370b250>, 'celery.chord_unlock': <@task: celery.chord_unlock of app:0x370b250>, 'celery.group': <@task: celery.group of app:0x370b250>, 'celery.backend_cleanup': <@task: celery.backend_cleanup of app:0x370b250>, 'celery.map': <@task: celery.map of app:0x370b250>, 'celery.starmap': <@task: celery.starmap of app:0x370b250>}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question