Grokking Concurrency in Python
Vote

0% completed

​

Finding a Blocked Event Loop

lag monitor: loop was 0.58 s late

That line came from Harvest's async crawler while it fetched and indexed six pages. The crawl finished in 1.18 seconds with no errors. Yet a task that asks to wake up every 0.1 seconds woke up more than half a second late, so every other task on that event loop waited too.

On a service, this delay appears as slow responses on every endpoint at once, with nothing in the error logs. How do you find the code that blocks an event loop when nobody can step through the program?

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content