You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Atomically force complete the workflow if internal channel is empty, otherwise trigger the state movements from the current thread
84
+
* This is important for use case that needs to ensure all the messages in the channel are processed before completing the workflow, otherwise messages will be lost.
85
+
* Without this atomic API, if user just check the channel emptiness in the State APIs, the channel may receive new messages during the execution of state APIs
86
+
* <br>
87
+
* Note that today this doesn't cover the case that internal messages are published from other State APIs yet. It's only for internal messages published from RPCs.
88
+
* If you do want to use other State APIs to publish messages to the channel at the same time, you can use persistence locking to ensure only the State APIs are not executed
89
+
* in parallel. See more in TODO https://github.com/indeedeng/iwf/issues/289
90
+
*
91
+
* @param completionOutput the output of workflow completion
92
+
* @param internalChannelName the internal channel name for checking emptiness
93
+
* @param orElseStateMovements the state movements if channel is not empty
* Atomically force complete the workflow if signal channel is empty, otherwise trigger the state movements from the current thread
127
+
* This is important for use case that needs to ensure all the messages in the channel are processed before completing the workflow, otherwise messages will be lost.
128
+
* Without this atomic API, if user just check the channel emptiness in the State APIs, the channel may receive new messages during the execution of state APIs
129
+
*
130
+
* @param completionOutput the output of workflow completion
131
+
* @param signalChannelName the signal channel name for checking emptiness
132
+
* @param orElseStateMovements the state movements if channel is not empty
0 commit comments