Query Optimization and profiling for celery tasks

173 views
Skip to first unread message

Hamidreza Mahmoodian

unread,
Jul 24, 2021, 9:10:15 AM7/24/21
to Django users

Hello everyone

Django-debug-toolbar and Django-silk are two famous tools for profiling HTTP requests. Is it possible to analyze a celery task or any other function inside the code? for instance, I have a celery task like this:

def main_task(): 
    while _condition: 
        logic() 
        sleep(_t) 
    return True

I need some information like duplicate and similar queries in logic() for every loop.
Unfortunately no one answered similar question to me in Stackoverflow.
thanks






Reply all
Reply to author
Forward
0 new messages