I have a Firebase Cloud Function that is triggered by a PubSub message. The function should either consume the message or wait to consume it at a later time.
Is there a way to return from this function without acknowledging the message, so that it will be re-delivered at a later time?
For example, can I return a Message
from the cloud function? The docs seem to indicate this is possible, if I'm reading them right:
Returns
non-null functions.CloudFunction containing non-null functions.pubsub.Message A Cloud Function which you can export.