Skip to content

Commit 73add2e

Browse files
committed
Reword warning
Signed-off-by: Sergio Herrera <627709+seherv@users.noreply.github.com>
1 parent 9185482 commit 73add2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • ext/dapr-ext-workflow/dapr/ext/workflow/_durabletask

ext/dapr-ext-workflow/dapr/ext/workflow/_durabletask/worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,9 +2160,9 @@ def execute(
21602160
activity_output.close()
21612161
raise RuntimeError(
21622162
f"Activity '{name}' returned a coroutine on the sync path. "
2163-
f'Declare it with ``async def``, or if it already is, check that any wrapping '
2164-
f'decorator uses ``@functools.wraps(fn)`` and does not wrap the async callable '
2165-
f'in a sync ``def`` (``is_async_callable`` needs to see through the decorator).'
2163+
f'Declare it with ``async def``, or if it already is, ensure any decorator '
2164+
f'wrapping it uses ``@functools.wraps(fn)`` so the runtime can detect the '
2165+
f'underlying async function.'
21662166
)
21672167
return self._encode_output(orchestration_id, name, task_id, activity_output)
21682168

0 commit comments

Comments
 (0)