Handling failures

When your Google Cloud Function processes data flows, you can route FlowFiles to a failure output port to signal that an invocation has failed. Understanding how the Cloud function retries failed invocations and when events are dropped helps you design flows that avoid data loss and handle errors appropriately.

You can use a failure Output Port to notify the Cloud function that an invocation has failed. At that point, the Cloud function may automatically retry the invocation, if configured in the Trigger section, for up to seven days. After that, if it still fails, the Cloud function will simply drop the event notification. This could result in data loss, as it means that your Cloud function will not have a chance to process the data again.