Fix 'airflow dags next-execution --table' crash when no next run exists#67642
Merged
pierrejeambrun merged 2 commits intoJun 3, 2026
Merged
Conversation
GayathriSrividya
requested review from
bugraoz93,
choo121600,
dheerajturaga,
ephraimbuddy,
jason810496,
pierrejeambrun,
potiuk,
rawwar and
shubhamraj-git
as code owners
May 28, 2026 11:17
pierrejeambrun
left a comment
Member
There was a problem hiding this comment.
Thanks you for the PR.
Can you clean the branch please, there seems to be an unrelated commit in here.
GayathriSrividya
force-pushed
the
fix/dag-next-execution-table-none-67394
branch
6 times, most recently
from
June 2, 2026 16:23
8bd14bc to
6d9bccf
Compare
GayathriSrividya
force-pushed
the
fix/dag-next-execution-table-none-67394
branch
from
June 3, 2026 07:29
6d9bccf to
10ebea4
Compare
pierrejeambrun
approved these changes
Jun 3, 2026
pierrejeambrun
left a comment
Member
There was a problem hiding this comment.
LGTM, tested and working as expected, thanks
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Contributor
Backport successfully created: v3-2-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actions Bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jun 3, 2026
…ext run exists (apache#67642) * Fix 'airflow dags next-execution --table' crash when no next run exists * Remove unnecessary newsfragment for next-execution table crash fix as per review --------- (cherry picked from commit 7ec8fc9) Co-authored-by: GayathriSrividya <gayathrirajavarapu7@gmail.com> Co-authored-by: Gayathri Srividya Rajavarapu <gayathrir@Gayathris-MacBook-Air.local>
pierrejeambrun
pushed a commit
that referenced
this pull request
Jun 3, 2026
…ext run exists (#67642) (#67949) * Fix 'airflow dags next-execution --table' crash when no next run exists * Remove unnecessary newsfragment for next-execution table crash fix as per review --------- (cherry picked from commit 7ec8fc9) Co-authored-by: GayathriSrividya <gayathrirajavarapu7@gmail.com> Co-authored-by: Gayathri Srividya Rajavarapu <gayathrir@Gayathris-MacBook-Air.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes: #67394
`airflow dags next-execution --table` crashes with `AttributeError` when the DAG has `schedule=None` or `@once` (when requesting more than one execution via `--num-executions`).
The `--table` code path applied `attrgetter` to every yielded object from `iter_next_dagrun_info()` without checking for `None` first. The non-table path already had the correct `if info is None` guard. This fix mirrors the same guard in the table path and prints a warning to stderr instead of crashing.