Skip to content

Detect paused DAG in runs trigger-wait#190

Open
jlaneve wants to merge 1 commit intomainfrom
julianlaneve/ai-274-runs-trigger-wait-on-a-paused-dag-silently-waits-the-9a63
Open

Detect paused DAG in runs trigger-wait#190
jlaneve wants to merge 1 commit intomainfrom
julianlaneve/ai-274-runs-trigger-wait-on-a-paused-dag-silently-waits-the-9a63

Conversation

@jlaneve
Copy link
Copy Markdown
Contributor

@jlaneve jlaneve commented Apr 21, 2026

af runs trigger-wait on a paused DAG used to silently block until timeout — the trigger request succeeded but no run was ever scheduled.

The MCP trigger_dag_and_wait tool already auto-unpaused before triggering; this mirrors that behavior in the CLI (runs trigger and runs trigger-wait). Added --no-auto-unpause for callers who'd rather fail fast with a clear error than have the DAG state mutated.

Previously `af runs trigger-wait` on a paused DAG would trigger an unscheduled
run and silently block until the timeout expired. The MCP tool already
auto-unpaused before triggering; mirror that in the CLI and add a
--no-auto-unpause flag for callers who want to fail fast instead.

Generated with [Linear](https://linear.app/astronomer/issue/AI-274/runs-trigger-wait-on-a-paused-dag-silently-waits-the-full-timeout#agent-session-b423d17b)

Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com>
@jlaneve jlaneve marked this pull request as ready for review April 21, 2026 04:37
@jlaneve jlaneve requested a review from schnie April 21, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant