Skip to content

Restore deactivate_deleted_dags signature broken by #63617#64245

Merged
ephraimbuddy merged 1 commit intoapache:mainfrom
astronomer:fix-backward-incompatibility
Mar 26, 2026
Merged

Restore deactivate_deleted_dags signature broken by #63617#64245
ephraimbuddy merged 1 commit intoapache:mainfrom
astronomer:fix-backward-incompatibility

Conversation

@ephraimbuddy
Copy link
Copy Markdown
Contributor

The zip import error fix (#63617) changed the public signature of DagFileProcessorManager.deactivate_deleted_dags from (bundle_name, present: set[DagFileInfo]) to
(bundle_name, observed_filelocs: set[str]), breaking subclass overrides. Restore the original signature and compute observed filelocs internally.

Also widen DagModel.deactivate_deleted_dags rel_filelocs type from set[str] to Collection[str] to accept both list and set callers.

The zip import error fix (apache#63617) changed the public signature of
`DagFileProcessorManager.deactivate_deleted_dags` from
`(bundle_name, present: set[DagFileInfo])` to
`(bundle_name, observed_filelocs: set[str])`, breaking subclass
overrides. Restore the original signature and compute observed
filelocs internally.

Also widen `DagModel.deactivate_deleted_dags` `rel_filelocs` type
from `set[str]` to `Collection[str]` to accept both list and set
callers.
@ephraimbuddy ephraimbuddy force-pushed the fix-backward-incompatibility branch from 1d93e4a to 799e2c1 Compare March 26, 2026 12:43
@ephraimbuddy ephraimbuddy merged commit 9ad468c into apache:main Mar 26, 2026
80 checks passed
@ephraimbuddy ephraimbuddy deleted the fix-backward-incompatibility branch March 26, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants