I have a simple service that publishes messages to a PubSub topic and occasionally get a "Deadline Exceeded" error message:
GaxError(RPC failed, caused by <_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)>)
Python code:
from google.cloud import pubsub
pubsub_client = pubsub.Client()
topic = pubsub_client.topic("pubsub-topic")
data = data.encode('utf-8')
message_id = topic.publish(data)
It posts a few messages a second, from a Flask web app, and maybe one in a few hundred fail with that error.