can_replay cancelled

This commit is contained in:
Igor Loskutov
2025-12-18 13:44:57 -05:00
parent 0ce38dfeb3
commit 17a93b7393
2 changed files with 13 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ class HatchetClientManager:
"""Check if workflow can be replayed (is FAILED)."""
try:
status = await cls.get_workflow_run_status(workflow_run_id)
return status == V1TaskStatus.FAILED
return status == V1TaskStatus.FAILED or status == V1TaskStatus.CANCELLED
except Exception as e:
logger.warning(
"[Hatchet] Failed to check replay status",