From 52011a62e48ab61d56efa5546a9ee348e113bdd5 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Mon, 22 Jan 2024 14:34:44 -0600 Subject: [PATCH] Prefix some errors with rule identifiers --- temporalio/worker/_workflow.py | 2 +- tests/worker/test_workflow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/temporalio/worker/_workflow.py b/temporalio/worker/_workflow.py index 37d5ec16..c91e4e69 100644 --- a/temporalio/worker/_workflow.py +++ b/temporalio/worker/_workflow.py @@ -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( diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 99c30462..cf92693e 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -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),