-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Clarify continue-as-new signal draining for Go #781
Comments
Thanks @cretz !
Can you point us to examples for Go that shows as "asynchronous drain" on the Signal channel? |
Understood. In this tiny issue though, I was just pointing out there's a Go note in the non-Go section that isn't even in the Go section. I think this note can be added to the Go section before taking on the larger task of clarifying.
temporalio/samples-go#158 has been opened to add the sample.
It means there isn't a signal in buffer. This is unique to how Go handles signals I believe (others use callbacks). My understanding is you can lose signals if you continue-as-new before handling all locally buffered signals. |
We should also warn against the following usage issue highlighted here: temporalio/sdk-go#197 In essence, if the workflow is kicked off via a string, then continue-as-new should also use a string vs using the method pointer. otherwise you see weird behavior where continue-as-new starts a different workflow. |
Is your feature request related to a problem? Please describe.
At https://docs.temporal.io/docs/concepts/workflows#faq, there is a note for continue-as-new that says:
But it is not in the Go docs that I can find
Describe the solution you'd like
In the Go documentation for continue-as-new and maybe also for signals, this same thing should be mentioned
The text was updated successfully, but these errors were encountered: