Skip to content

Commit

Permalink
Prefix some errors with rule identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz committed Jan 22, 2024
1 parent 4904054 commit 52011a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion temporalio/worker/_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def _handle_activation(
)
except asyncio.TimeoutError:
raise RuntimeError(
f"Potential deadlock detected, workflow didn't yield within {self._deadlock_timeout_seconds} second(s)"
f"[TMPRL1101] Potential deadlock detected, workflow didn't yield within {self._deadlock_timeout_seconds} second(s)"
)
except Exception as err:
logger.exception(
Expand Down
2 changes: 1 addition & 1 deletion tests/worker/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@ async def last_history_task_failure() -> str:

try:
await assert_eq_eventually(
"Potential deadlock detected, workflow didn't yield within 2 second(s)",
"[TMPRL1101] Potential deadlock detected, workflow didn't yield within 2 second(s)",
last_history_task_failure,
timeout=timedelta(seconds=5),
interval=timedelta(seconds=1),
Expand Down

0 comments on commit 52011a6

Please sign in to comment.