Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix some errors with rule identifiers #464

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading