GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Executing only one pubsub callback concurrently · Issue #4687 · googleapis/google-cloud-python Closed Labels api: pubsubIssues related to the Pub/Sub API. DescriptionI have a problem, where I depend on stateful externals resources, that require me to only process one message at a time. I was trying to accomplish that by setting the max_messages in the FlowControl to 1. However, the callbacks were still executed concurrently. So I dug a bit deeper and found this commit. I thought I could pass an event and use that to block the thread until the execution of the callback is done. However, it was not entirely clear to me how this is meant to be use. The only place I found, where an event can be passed is the constructor of the future. However, the docstring discourages to use this class. So, is the intended way to use this, to implement a new policy? Because this is the place, where I would have assumed the event to be passed through. If I'm completely off track and if there's some completely different way of going about this, please let me know. I appreciate you work! Activity
MetadataMetadataAssigneesLabelsapi: pubsubIssues related to the Pub/Sub API. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |