Pub Sub topic invokes a cloud function endpoint upon receiving a new message.
If any error happens inside the cloud function the function returns an error.
- Whether the delivery will be retried by the PubSub in case of error?
- The Cloud function deployed without the retry option. Want to have the retry control on the Pub Sub.
Tried a sample pub sub topic triggered cloud function which always returns the error on execution,
**
import (
"context"
"errors"
)
func PushBackOffTest(ctx context.Context, m PubSubMessage) error {
print(string(m.Data))
return errors.New("always returns error")
}
**
But the cloud function is not executed again.It ran only once.
ACK deadline 600 seconds. Max delivery attempts 6 . Configured from the G Cloud console.