~/talk

From Oops to Ops: Smart Task Failure Diagnosis with OpenAI

Talkat Airflow Summit 2024 · 2024-09-10..09-12· [ai-assisted-development]
links:none on file
slides:none on file

An experimental Airflow extension uses OpenAI to diagnose task failures by invoking an assistant on a failure callback, packaging DAG code, stack snippets and BigQuery SQL, uploading files to a file search tool, running GPT‑4o‑mini and returning structured JSON that it writes diagnosis to logs and Slack. It identifies concrete causes (missing dataset, partition field typo, SQL type mismatch, bad API id), suggests fixes and rewrites SQL, costs ~ $0.02 per GPT‑4 call (mini is a fraction of a cent), and fails to go deeper when tracebacks are discarded and assistants are created per callback.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:04Airflow and Gen AI overview
  3. 2:09Airflow task failure diagnosis concept
  4. 3:32Implementation with OpenAI platform
  5. 6:23Building context for diagnosis
  6. 7:27Assistant configuration details
  7. 8:31Prompt engineering best practices
  8. 9:37File upload and thread setup
  9. 10:39Processing and output of diagnosis
  10. 11:00Live demo examples
  11. 16:41Summary and future considerations
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.