Skip to content

syncing #1

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

Merged
merged 22 commits into from
Aug 23, 2019
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1cf4d1f
fixing translate-with-glossary bug (#2323)
crowdus Aug 8, 2019
7d01d74
Fix region tag (#2328)
averikitsch Aug 9, 2019
67260e9
Translate beta samples fix (#2327)
crowdus Aug 12, 2019
1db16b8
Print actual number of messages pulled (#2078)
olivercoad Aug 12, 2019
c7fdb13
Split Cloud Tasks snippet methods (#2332)
averikitsch Aug 12, 2019
a208992
Fix ssml_to_audio test (#2333)
crowdus Aug 12, 2019
4e44c60
Fix IoT parameters (#2320)
gguuss Aug 12, 2019
8ade7dd
Fix list devices in IoT sample (#2319)
gguuss Aug 12, 2019
767eaa3
Pub/Sub: fix subscriber async region tag mistake (#2334)
anguillanneuf Aug 13, 2019
5f4a9c4
Add DICOMweb retrieve instance/image and download them to machi… (#2331)
noerog Aug 13, 2019
9226981
IAM: added snippet for remove member (#2165)
DSdatsme Aug 14, 2019
0ce1495
Add `fs_update_document_increment` snippet (#2341)
BenWhitehead Aug 15, 2019
ff9a856
Fix Cloud SQL example (MySQL) (#2309)
joangro Aug 16, 2019
d821c97
Fix dependency security vulnerability
engelke Aug 16, 2019
e1d66d8
Using glossaries with tts and vision tutorial sample code (#2325)
crowdus Aug 19, 2019
267a74d
Update region tag for Cloud Tasks snippets (#2350)
averikitsch Aug 20, 2019
5907fab
increase test timeout (#2351)
averikitsch Aug 20, 2019
02998e8
Use print() function in both Python 2 and Python 3 (#2234)
cclauss Aug 20, 2019
7f60075
Makes quickstart more REPL friendly (#2354)
gguuss Aug 20, 2019
a02fa46
Fix style in tests (#2318)
gguuss Aug 20, 2019
41161fb
Change retrieve study output file to use .multipart extension (#2345)
noerog Aug 22, 2019
6996c8e
Asset: Add Real Time Feed API Sample Code (#2352)
cwxie-google Aug 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pub/Sub: fix subscriber async region tag mistake (GoogleCloudPlatform…
  • Loading branch information
anguillanneuf authored Aug 13, 2019
commit 767eaa3c9a60f5b4a7df5c4bddfae2617f9c195c
2 changes: 2 additions & 0 deletions pubsub/cloud-client/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def callback(message):
def receive_messages_with_custom_attributes(project_id, subscription_name):
"""Receives messages from a pull subscription."""
# [START pubsub_subscriber_sync_pull_custom_attributes]
# [START pubsub_subscriber_async_pull_custom_attributes]
import time

from google.cloud import pubsub_v1
Expand Down Expand Up @@ -225,6 +226,7 @@ def callback(message):
print('Listening for messages on {}'.format(subscription_path))
while True:
time.sleep(60)
# [END pubsub_subscriber_async_pull_custom_attributes]
# [END pubsub_subscriber_sync_pull_custom_attributes]


Expand Down