Skip to content

Add endpoint to watch dag run until finish#51920

Merged
uranusjr merged 5 commits into
apache:mainfrom
astronomer:stream-until-run-complete
Jul 9, 2025
Merged

Add endpoint to watch dag run until finish#51920
uranusjr merged 5 commits into
apache:mainfrom
astronomer:stream-until-run-complete

Conversation

@uranusjr

@uranusjr uranusjr commented Jun 19, 2025

Copy link
Copy Markdown
Member

Close #51711.

I initially wanted to just enhance the trigger endpoint to optionally stream until the run finishes, but it seems that FastAPI does not like this optionally stream idea. You can do it of course, but would loose a lot of the auto annotation reflection feature. So I opted to have a separate streaming endpoint instead.

This endpoint repeatedly emits a JSON object at the specified interval, until the dag reaches a finished state.

Tests to come.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Inference Execution / Synchronous DAG Execution

6 participants