Skip to content

Commit 52011a6

Browse files
committed
Prefix some errors with rule identifiers
1 parent 4904054 commit 52011a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

temporalio/worker/_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async def _handle_activation(
215215
)
216216
except asyncio.TimeoutError:
217217
raise RuntimeError(
218-
f"Potential deadlock detected, workflow didn't yield within {self._deadlock_timeout_seconds} second(s)"
218+
f"[TMPRL1101] Potential deadlock detected, workflow didn't yield within {self._deadlock_timeout_seconds} second(s)"
219219
)
220220
except Exception as err:
221221
logger.exception(

tests/worker/test_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ async def last_history_task_failure() -> str:
23792379

23802380
try:
23812381
await assert_eq_eventually(
2382-
"Potential deadlock detected, workflow didn't yield within 2 second(s)",
2382+
"[TMPRL1101] Potential deadlock detected, workflow didn't yield within 2 second(s)",
23832383
last_history_task_failure,
23842384
timeout=timedelta(seconds=5),
23852385
interval=timedelta(seconds=1),

0 commit comments

Comments
 (0)