Saturday, July 24, 2021

Query Optimization and profiling for celery tasks


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






--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7ee5aa4a-9860-45b6-ab50-76bad4a668cdn%40googlegroups.com.

No comments:

Post a Comment