Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

When the dag Processor is made to run specific bundle, it previously attempted to process callback requests for bundles it does not own, leading to a StopIteration in render_log_filename due to missing bundle references.

Now, fetch_callbacks only enqueues callbacks whose bundle_name matches one of the manager’s active bundles, leaving others in the DB for the correct processor to handle.

closes: #57081

When the dag Processor is made to run specific bundle, it previously attempted to
process callback requests for bundles it does not own, leading to a
StopIteration in render_log_filename due to missing bundle references.

Now, fetch_callbacks only enqueues callbacks whose bundle_name matches
one of the manager’s active bundles, leaving others in the DB for the
correct processor to handle.

closes: apache#57081
Copy link
Contributor

@tirkarthi tirkarthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ephraimbuddy

@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.2 milestone Oct 24, 2025
@ephraimbuddy ephraimbuddy added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Oct 24, 2025
@ephraimbuddy ephraimbuddy merged commit 3b97c94 into apache:main Oct 24, 2025
62 checks passed
@ephraimbuddy ephraimbuddy deleted the only-run-current-manager-bundles branch October 24, 2025 16:17
@github-actions
Copy link

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 3b97c94 v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

@tirkarthi
Copy link
Contributor

Just to add internally we just partitioned the total dags into 4 folders with each dag processor for the folder as bundle. But each dag processor had access to all dags sharing common file system too for logs so we just used the bundle name as log file name as a workaround but this is the correct fix. Thanks.

ephraimbuddy added a commit to astronomer/airflow that referenced this pull request Oct 27, 2025
…che#57192)

When the dag Processor is made to run specific bundle, it previously attempted to
process callback requests for bundles it does not own, leading to a
StopIteration in render_log_filename due to missing bundle references.

Now, fetch_callbacks only enqueues callbacks whose bundle_name matches
one of the manager’s active bundles, leaving others in the DB for the
correct processor to handle.

closes: apache#57081
(cherry picked from commit 3b97c94)
ephraimbuddy added a commit that referenced this pull request Oct 27, 2025
) (#57330)

When the dag Processor is made to run specific bundle, it previously attempted to
process callback requests for bundles it does not own, leading to a
StopIteration in render_log_filename due to missing bundle references.

Now, fetch_callbacks only enqueues callbacks whose bundle_name matches
one of the manager’s active bundles, leaving others in the DB for the
correct processor to handle.

closes: #57081
(cherry picked from commit 3b97c94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:DAG-processing backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dag processor crashes trying to process callback request for another bundle

2 participants