Skip to content
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

ASYC script not ending the process #28

Open
miballe opened this issue Nov 26, 2021 · 0 comments
Open

ASYC script not ending the process #28

miballe opened this issue Nov 26, 2021 · 0 comments

Comments

@miballe
Copy link
Contributor

miballe commented Nov 26, 2021

When calling the ASYNC script and the defined time to collect data is over, the process is not ended and remains in execution.

This like seems to be the one that is supposed to cancel the subscription consumption and end the thread, but it's not enough to end the thread:

As per the Google Cloud Pub/Sub documentation, the cancel() function is not enough to end the thread and there's a suggestion to use result() right after that.
https://googleapis.dev/python/pubsub/latest/subscriber/api/futures.html#google.cloud.pubsub_v1.subscriber.futures.StreamingPullFuture.cancel

Please ensure the whole process ends in a clean way when the condition is met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant