Relative Content

Tag Archive for google-cloud-pubsub

504 Deadline Exceeded in google pub/sub python

from google.cloud import pubsub_v1 if __name__ == ‘__main__’: publisher = pubsub_v1.PublisherClient( credentials=”/Users/quang/.config/gcloud/application_default_credentials.json” ) a = publisher.list_topics( timeout=10, ) print(a) Error: raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded python 3.12.3 google-api-core 2.19.0 google-api-python-client 2.135.0 google-auth 2.29.0 google-auth-httplib2 0.2.0 google-cloud-core 2.4.1 google-cloud-firestore 2.16.0 google-cloud-pubsub 2.13.12 I am using Google Pub/Sub for my project. I have followed […]

Push Subscription with long-running tasks

I have tasks that can be completed in ~3 mins. Cloud Run offers 600 seconds as a maximum timeout, so this is not an issue. We decided to use Cloud Run + Pub/Sub with push subscription.