Retry condition for resuming flag should apply only to top graphs (#3676)

This commit is contained in:
Nuno Campos
2025-03-04 10:20:35 -08:00
committed by GitHub
+5 -2
View File
@@ -569,8 +569,11 @@ class PregelLoop(LoopProtocol):
CONFIG_KEY_RESUMING,
self.input is None
or isinstance(self.input, Command)
or self.config.get("metadata", {}).get("run_id")
== self.checkpoint_metadata.get("run_id", MISSING),
or (
not self.is_nested
and self.config.get("metadata", {}).get("run_id")
== self.checkpoint_metadata.get("run_id", MISSING)
),
)
)