-
Notifications
You must be signed in to change notification settings - Fork 42
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
Closing an async changefeed #160
Comments
I forgot to add this 😢 Will fix soon. It's going to be closed when calling core.async/close! |
Great, was thinking that would be a good way to do it. |
I'm not sure how to best communicate to the client that a channel has closed. Would it be enough to check if the channel is open when receiving a partial success, and close the feed if it's not? This would leave the feed open if a change never happens after the channel is closed. |
Do you mean that currently calling |
Yes. The only way to close a changefeed is to close the connection. |
Thanks. Very glad I caught this. This means I can't deploy into production what I've built, where new changefeeds are opened (and closed) regularly. |
Is there an example of a |
For anybody else who happens to end up here — the workaround is to maintain a separate connection for each changefeed, which you |
@apa512 Any movement on this? It requires pretty significant architectural workarounds for those of us managing lots of different changefeeds. |
I'm pretty sure this works in |
I'm looking at the new async code, and I'm not quite sure how to close a changefeed once I'm done with it. @apa512 do you have any ideas?
The text was updated successfully, but these errors were encountered: