Skip to content

Commit 7063c17

Browse files
committed
Edit warning messages
1 parent ea63920 commit 7063c17

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

temporalio/worker/_workflow_instance.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,10 +2761,10 @@ def _make_unfinished_update_handler_message(
27612761
Workflow finished while update handlers are still running. This may have interrupted work that the
27622762
update handler was doing, and the client that sent the update will receive a 'workflow execution
27632763
already completed' RPCError instead of the update result. You can wait for all update and signal
2764-
handlers to complete by using `await workflow.wait_condition(lambda: workflow.all_handlers_finished())`.
2765-
Alternatively, if both you and the clients sending updates and signals are okay with interrupting
2766-
running handlers when the workflow finishes, and causing clients to receive errors, then you can
2767-
disable this warning via the update handler decorator:
2764+
handlers to complete by using `await workflow.wait_condition(lambda:
2765+
workflow.all_handlers_finished())`. Alternatively, if both you and the clients sending the update
2766+
are okay with interrupting running handlers when the workflow finishes, and causing clients to
2767+
receive errors, then you can disable this warning via the update handler decorator:
27682768
`@workflow.update(unfinished_policy=workflow.HandlerUnfinishedPolicy.ABANDON)`.
27692769
""".replace(
27702770
"\n", " "
@@ -2782,10 +2782,9 @@ def _make_unfinished_signal_handler_message(
27822782
Workflow finished while signal handlers are still running. This may have interrupted work that the
27832783
signal handler was doing. You can wait for all update and signal handlers to complete by using
27842784
`await workflow.wait_condition(lambda: workflow.all_handlers_finished())`. Alternatively, if both
2785-
you and the clients sending updates and signals are okay with interrupting running handlers when the
2786-
workflow finishes, and causing clients to receive errors, then you can disable this warning via the
2787-
signal handler decorator:
2788-
`@workflow.signal(unfinished_policy=workflow.HandlerUnfinishedPolicy.ABANDON)`.
2785+
you and the clients sending the signal are okay with interrupting running handlers when the workflow
2786+
finishes, and causing clients to receive errors, then you can disable this warning via the signal
2787+
handler decorator: `@workflow.signal(unfinished_policy=workflow.HandlerUnfinishedPolicy.ABANDON)`.
27892788
""".replace(
27902789
"\n", " "
27912790
).strip()

0 commit comments

Comments
 (0)