Skip to content

Commit

Permalink
Catch BaseException in activities
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz committed Jul 17, 2023
1 parent 83bbc36 commit 1fbe074
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions temporalio/worker/_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,7 @@ async def _run_activity(
completion.result.completed.result.CopyFrom(
(await self._data_converter.encode([result]))[0]
)
except (
Exception,
asyncio.CancelledError,
temporalio.exceptions.CancelledError,
temporalio.activity._CompleteAsyncError,
) as err:
except BaseException as err:
try:
if isinstance(err, temporalio.activity._CompleteAsyncError):
temporalio.activity.logger.debug("Completing asynchronously")
Expand Down

0 comments on commit 1fbe074

Please sign in to comment.