Skip to content

Fix Trigger Again showing empty config for the selected run - #70248

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix-trigger-again-with-config
Jul 23, 2026
Merged

Fix Trigger Again showing empty config for the selected run#70248
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix-trigger-again-with-config

Conversation

@pierrejeambrun

@pierrejeambrun pierrejeambrun commented Jul 22, 2026

Copy link
Copy Markdown
Member

Re-triggering a Dag with the config of a selected run (the "Trigger DAG w/ config" / "Trigger Again with config" menu item) left the configuration empty — the JSON editor showed {} and the selected run's conf was not carried over.

The prefill only pushed the run's conf into the param store when the Dag's declared params were already present. For Dags with no declared params (or before the params query resolved), that branch was skipped, so the param store kept its default empty config and the sync effect reset the form back to {}, dropping the run's configuration. The conf is now always propagated to the param store on prefill; seeding the initial params (for stable section ordering) still waits until they are available.

Before / after (config carried over from the selected run):

Before

Screen.Recording.2026-07-22.at.17.56.03.mov

After

Screen.Recording.2026-07-22.at.17.55.13.mov

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

Re-triggering a Dag with the config of a selected run left the configuration empty ("{}") whenever the Dag had no declared params or its params had not loaded yet: the prefill only pushed the run's conf into the param store when params were present, so the sync effect overwrote the form back to the default empty config and the selected run's configuration was lost.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 22, 2026
@pierrejeambrun pierrejeambrun added this to the Airflow 3.3.1 milestone Jul 22, 2026
@pierrejeambrun pierrejeambrun added the backport-to-v3-3-test Backport to v3-3-test label Jul 22, 2026
@pierrejeambrun
pierrejeambrun marked this pull request as ready for review July 22, 2026 15:54
@ashb

ashb commented Jul 22, 2026

Copy link
Copy Markdown
Member

Does this also work if "arbitrary" json conf is provided?

@pierrejeambrun

pierrejeambrun commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Does this also work if "arbitrary" json conf is provided?

Yes, an arbitrary config is propagated via the 'trigger again with config' button. It wasn't clear in my previous video because it looks like the dag had params, but the dag had no conf and it was added manually when starting the previous run.

Here is a better example

Screen.Recording.2026-07-23.at.10.43.29.mov

@pierrejeambrun
pierrejeambrun merged commit 58160be into apache:main Jul 23, 2026
140 of 146 checks passed
@pierrejeambrun
pierrejeambrun deleted the fix-trigger-again-with-config branch July 23, 2026 08:46
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

pierrejeambrun added a commit that referenced this pull request Jul 24, 2026
…un (#70248) (#70288)

Re-triggering a Dag with the config of a selected run left the configuration empty ("{}") whenever the Dag had no declared params or its params had not loaded yet: the prefill only pushed the run's conf into the param store when params were present, so the sync effect overwrote the form back to the default empty config and the selected run's configuration was lost.
(cherry picked from commit 58160be)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants