From 9b3b9cadf0dc8006e79d28f0b0a0b48eec23d380 Mon Sep 17 00:00:00 2001 From: JamieDeMaria Date: Wed, 13 Nov 2024 15:07:22 -0500 Subject: [PATCH] fix condition --- python_modules/dagster/dagster/_core/instance/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/dagster/dagster/_core/instance/__init__.py b/python_modules/dagster/dagster/_core/instance/__init__.py index 23555eedb0011..0500f022779a8 100644 --- a/python_modules/dagster/dagster/_core/instance/__init__.py +++ b/python_modules/dagster/dagster/_core/instance/__init__.py @@ -1663,7 +1663,7 @@ def create_reexecuted_run( # if the run was part of a backfill and the backfill is complete, we do not want the # retry to be considered part of the backfill, so remove all backfill-related tags backfill = self.get_backfill(parent_run.tags[BACKFILL_ID_TAG]) - if backfill.status == BulkActionStatus.REQUESTED: + if backfill and backfill.status == BulkActionStatus.REQUESTED: for tag in BACKFILL_TAGS: if parent_run.tags.get(tag) is not None: parent_run_tags[tag] = parent_run.tags[tag]