From 6ce64a93f17ee10b7b3c983dbe67e58ec55d8fef Mon Sep 17 00:00:00 2001 From: Nicholas Schrock Date: Thu, 24 Aug 2023 04:20:41 -0700 Subject: [PATCH] bug fix --- .../dagster/_core/execution/context/dual_state_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py index be9823977807f..57e6464e990c9 100644 --- a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py +++ b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py @@ -59,7 +59,7 @@ def call_on_del(self) -> None: @property def has_been_accessed(self) -> bool: - return bool(self._resources) + return isinstance(self._resources, Resources) def get_already_accessed_resources(self) -> Resources: check.invariant(self.has_been_accessed)