René's URL Explorer Experiment


Title: Make publish futures compatible with `concurrent.futures.as_completed()` · Issue #368 · googleapis/python-pubsub · GitHub

Open Graph Title: Make publish futures compatible with `concurrent.futures.as_completed()` · Issue #368 · googleapis/python-pubsub

X Title: Make publish futures compatible with `concurrent.futures.as_completed()` · Issue #368 · googleapis/python-pubsub

Description: Environment details OS type and version: Linux Python version: Python 3.7.7 pip version: pip 21.0.1 google-cloud-pubsub version: Version: 2.3.0 Summary: Google Cloud Pub/Sub API client library Home-page: https://github.com/googleapis/pyt...

Open Graph Description: Environment details OS type and version: Linux Python version: Python 3.7.7 pip version: pip 21.0.1 google-cloud-pubsub version: Version: 2.3.0 Summary: Google Cloud Pub/Sub API client library Home...

X Description: Environment details OS type and version: Linux Python version: Python 3.7.7 pip version: pip 21.0.1 google-cloud-pubsub version: Version: 2.3.0 Summary: Google Cloud Pub/Sub API client library Home...

Opengraph URL: https://github.com/googleapis/python-pubsub/issues/368

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make publish futures compatible with `concurrent.futures.as_completed()`","articleBody":"#### Environment details\r\n\r\n  - OS type and version: Linux\r\n  - Python version: `Python 3.7.7`\r\n  - pip version: `pip 21.0.1`\r\n  - `google-cloud-pubsub` version: \r\n```Name: google-cloud-pubsub\r\nVersion: 2.3.0\r\nSummary: Google Cloud Pub/Sub API client library\r\nHome-page: https://github.com/googleapis/python-pubsub\r\nAuthor: Google LLC\r\nAuthor-email: googleapis-packages@google.com\r\nLicense: Apache 2.0\r\nLocation: /Users/mike/.pyenv/versions/3.8.6/envs/detection-processor/lib/python3.8/site-packages\r\nRequires: grpc-google-iam-v1, proto-plus, google-api-core, libcst\r\nRequired-by: \r\n```\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Create multiple publish futures with `publisher.publish()`\r\n  2. Use `in concurrent.futures.as_completed()` as a generator to trigger on completion.\r\n\r\n#### Code example\r\n\r\n```python\r\nfuture_list = []\r\n\r\nfor msg in messages:\r\n    future_list.append(publisher.publish(topic_path, msg))\r\n\r\nfor _ in concurrent.futures.as_completed(\r\n    fs=future_list,\r\n):\r\n    # Do something\r\n    continue\r\n```\r\n\r\n#### Stack trace\r\n```\r\n'Future' object has no attribute '_condition'\r\n```\r\n\r\nI understand that the publish future is not REALLY a concurrent future object. This attribute error does not happen with all messages, it's a minority of messages. I'm not sure what causes some publish futures to work with `as_completed` and some do not.\r\n","author":{"url":"https://github.com/mbrancato","@type":"Person","name":"mbrancato"},"datePublished":"2021-04-06T13:40:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/368/python-pubsub/issues/368"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e255e8a-d747-8c89-fe83-9d90c147f154
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8AB4:25F3E7:2A94D1B:3A17EF9:6A544F5D
html-safe-noncefac4fc4e4dacec88c708d680ca8b084750ccb5d8728348e9dcaf83d098a57451
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUI0OjI1RjNFNzoyQTk0RDFCOjNBMTdFRjk6NkE1NDRGNUQiLCJ2aXNpdG9yX2lkIjoiMzY2MzQ4ODE1MTg1NzY4MDIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac49d1abf6fc8c3678614c517857e6cd65075d59f12d774b7bad0a3397097da5bb
hovercard-subject-tagissue:851436638
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-pubsub/368/issue_layout
twitter:imagehttps://opengraph.githubassets.com/25aae30ec4bf9a661fe519e1260a15bec0fb1f9698331a875a5639ab33cc7fc4/googleapis/python-pubsub/issues/368
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25aae30ec4bf9a661fe519e1260a15bec0fb1f9698331a875a5639ab33cc7fc4/googleapis/python-pubsub/issues/368
og:image:altEnvironment details OS type and version: Linux Python version: Python 3.7.7 pip version: pip 21.0.1 google-cloud-pubsub version: Version: 2.3.0 Summary: Google Cloud Pub/Sub API client library Home...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamembrancato
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992581
octolytics-dimension-repository_nwogoogleapis/python-pubsub
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992581
octolytics-dimension-repository_network_root_nwogoogleapis/python-pubsub
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-pubsub/issues/368#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F368
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F368
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-pubsub
Reloadhttps://github.com/googleapis/python-pubsub/issues/368
Reloadhttps://github.com/googleapis/python-pubsub/issues/368
Reloadhttps://github.com/googleapis/python-pubsub/issues/368
Please reload this pagehttps://github.com/googleapis/python-pubsub/issues/368
googleapis https://github.com/googleapis
python-pubsubhttps://github.com/googleapis/python-pubsub
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Fork 214 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Star 430 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Code https://github.com/googleapis/python-pubsub
Issues 0 https://github.com/googleapis/python-pubsub/issues
Pull requests 0 https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality 0 https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
Code https://github.com/googleapis/python-pubsub
Issues https://github.com/googleapis/python-pubsub/issues
Pull requests https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
#397https://github.com/googleapis/python-pubsub/pull/397
Make publish futures compatible with concurrent.futures.as_completed()https://github.com/googleapis/python-pubsub/issues/368#top
#397https://github.com/googleapis/python-pubsub/pull/397
https://github.com/plamut
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com/mbrancato
mbrancatohttps://github.com/mbrancato
on Apr 6, 2021https://github.com/googleapis/python-pubsub/issues/368#issue-851436638
plamuthttps://github.com/plamut
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.