Skip to content

Commit 9d66c8c

Browse files
authored
Set exc_info In Step Retries (#428)
Addresses #426
1 parent d33d6ff commit 9d66c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dbos/_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,8 @@ def invoke_step(*args: Any, **kwargs: Any) -> Any:
10731073

10741074
def on_exception(attempt: int, error: BaseException) -> float:
10751075
dbos.logger.warning(
1076-
f"Step being automatically retried. (attempt {attempt + 1} of {attempts}). {traceback.format_exc()}"
1076+
f"Step being automatically retried (attempt {attempt + 1} of {attempts})",
1077+
exc_info=error,
10771078
)
10781079
ctx = assert_current_dbos_context()
10791080
span = ctx.get_current_span()

0 commit comments

Comments
 (0)