Google Pub/Sub Subscriber not receiving messages after a while
问题 I have a simple python script that uses Google pubsub to detect new files in the google cloud storage. The script simply adds new messages to a queue where another thread processes those messages: subscriber = pubsub.SubscriberClient() subscription_path = subscriber.subscription_path( project, subscription_name) subscriber.subscribe(subscription_path, callback=callback_fun) while True: if not message_queue: time.sleep(60) continue else: process_next_message(message_queue.pop()) Here, callback