From f610ee176821e0c0dc3b6fc50851e0cb66c78191 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 9adde170fc66f..1628bdf3b13e7 100644 --- a/python_modules/dagster/dagster/_core/instance/__init__.py +++ b/python_modules/dagster/dagster/_core/instance/__init__.py @@ -1669,7 +1669,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]