WhoBuilt

Using RL Agent to Detect and Remediate ETL Pipeline Failures

Jun 29, 2026· 15 min· 1.8K views·Watch on YouTube

Speaker

Anna Marie Benzon presents an RL-guided system for detecting and remediating ETL pipeline failures, using an AWS capstone architecture and synthetic benchmark data.

Why ETL recovery takes time

A failed production data job can leave dashboards stale while engineers inspect logs, schemas, and source data. Benzon says the costly work is diagnosing the cause, choosing a safe response, restarting the job, and validating the data. The capstone modeled manual recovery at about 2.5 business days, with automation aimed at routine cases and escalation for uncertain or high-risk ones.

How the AWS system handles failures

An AWS Glue failure event is captured by EventBridge, which triggers a Lambda function to gather CloudWatch logs and Glue Data Catalog schema metadata. The system assesses the incident, then proposes an action; a separate safety layer checks it before an executor can restart a job or apply an approved correction. S3 stores agent state, audit logs, and quarantined outputs, and the rerun is validated.

Rules, learned choices, and safety limits

Deterministic analyzers identify observable conditions such as missing fields, type changes, and high null rates. A tabular Q-learning policy selects among six actions, including retry, rollback, quarantine, escalation, and logging. The policy only proposes an action: safety overrides can force escalation, and the audit log records proposals, overrides, execution results, and verification.

Benchmark results and their limits

The public benchmark uses newly generated synthetic schemas, logs, notebooks, and incident scenarios, while the capstone implementation used synthetic customer-provided data. Across 30 runs, the simulated success rate was 74.63% ± 1.51%, and the non-escalation rate was 88.63% ± 0.89%; successful recoveries took as little as about 5.24 minutes. Benzon notes that these results are from synthetic scenarios, some actions are simulated or constrained, and production validation remains to be done.

What to validate before production

In the benchmark, the learned policy matched an equivalent deterministic policy in success rate, with a reported difference of zero percentage points within a 0.19-point confidence interval. Benzon attributes reliability mainly to structured state, deterministic logic, and external safety constraints, rather than to reinforcement learning alone. She proposes shadow-mode evaluation on representative incident traces before granting execution authority, with approval procedures, policy rollback, and monitoring for any future online learning.

Takeaways

  • Use deterministic checks for facts that can be measured directly.
  • Apply learning only when context changes which bounded action is useful.
  • Keep safety constraints outside the learned policy and record every decision and outcome.
  • Treat escalation and post-action verification as core outcomes.
  • Compare repeated runs with simple baselines, then shadow-test on representative incidents before production execution.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks