-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix asset backfill duplicate run submission (#16666)
Customers reported duplicate runs being kicked off for asset backfills: - https://dagsterlabs.slack.com/archives/C05HE0RG8SU/p1695232916102629 This PR fixes the issue. Situation that causes this issue: 1. Partition X has been requested by the backfill, but is still in progress (has not materialized or failed) 2. Someone launches a manual run for a parent of partition X. 3. After the manual run completes, we [add asset partitions whose parents have been materialized to the candidate set](https://github.com/dagster-io/dagster/blob/claire/fix-dupe-runs/python_modules/dagster/dagster/_core/execution/asset_backfill.py#L1022-L1030), causing partition X to be re-added to the candidate set 3. We don't check that the partition has already been requested before re-requesting it. [We only check that a run of the partition has not been materialized / failed within the backfill](https://github.com/dagster-io/dagster/blob/25f11ba4005a5d0a5f670dc2f0da566d7afc2dd3/python_modules/dagster/dagster/_core/execution/asset_backfill.py#L1135C1-L1139C25). This PR fixes the issue by checking whether a partition has already been requested before re-requesting it.
- Loading branch information
1 parent
25f11ba
commit 48db04c
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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