---
name: diagnosing-failed-data-workflow-runs
description: "Diagnoses failed data workflow runs by inspecting task logs and stack traces, isolating root causes, and drafting incident summaries with workflow repair recommendations. Use when a workflow execution failure occurs."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Slack, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/diagnosing-failed-data-workflow-runs/"
  kind: workflow
  hermes:
    tags: ["orchestration", "pipelines", "debugging", "incident-response", "devops"]
    category: ops
    requires_toolsets: ["terminal", "connections"]
---
# Diagnosing failed data workflow runs

Inspect execution logs, identify root causes for failing pipeline steps, and draft workflow repairs.

## When to use

When an orchestrated pipeline execution fails, this bot pulls the run logs, traces the broken task step, and isolates the root cause. It prepares an incident summary detailing the faulty parameters and recommends declarative workflow adjustments before notifying the on-call engineer.

## Inputs

- `workflow_run_id`: Identifier or reference for the failed workflow execution to inspect.

## Steps

1. When something happens: Workflow execution failure signal (Workflow execution failure signal)
2. Inspect task logs and diagnose error
3. Request approval to post triage report

## Instructions

When a workflow execution error occurs, connect via terminal to retrieve task logs and stack traces. Determine whether the failure was caused by bad inputs, network timeouts, or schema mismatches. Draft a concise incident summary explaining the error and propose configuration or retry parameter updates. Always ask for user approval before posting notifications to Slack or opening pull requests on GitHub.

## Approvals

- Posting triage notifications to Slack
- Opening repair pull requests on GitHub

## Output

Incident summary with root cause, faulty parameters, and recommended workflow adjustments. (format: markdown)

## Source

Summarized in our own words from [kestra: Event Driven Orchestration & Scheduling Platform for Mission Critical Applications](https://github.com/kestra-io/kestra) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/diagnosing-failed-data-workflow-runs/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
