Profiling Airflow Tasks with Memray
summary
A plugin wraps selected task execute methods via Airflow cluster policies to run the Memray profiler, write HTML flame graphs and summaries to a temp folder, then upload results through the object storage API and expose them in the UI via operator extra links served by a Flask blueprint. Works for Python-based operators and produces per-run flamegraphs and memstats, but not for K8sPod/operator-deferred tasks, and profiling impacts performance.
AI-written summary · about
