Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22465

Python⇒Speed: Finding performance bottlenecks in Celery tasks

$
0
0

When your Celery tasks are too slow, and you want them to run faster, you usually want to find and then fix the performance bottleneck. It’s true, you can architect a solution where slow tasks don’t impact faster ones, and you may sometimes need to. But if you can manage to make all your tasks fast, that is ideal.

To speed up your code, you need to identify the bottlenecks: which task is slow, and why it’s slow. In this article we’ll go through the process for finding the performance bottleneck in your Celery tasks, explaining some of the tradeoffs and options along the way:

  1. Identifying slow tasks.
  2. Finding predictable-in-advance performance bottlenecks with code instrumentation.
  3. Profiling to find harder-to-predict bottlenecks, either:
    • On a development machine.
    • Or, in production.
Read more...

Viewing all articles
Browse latest Browse all 22465

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>