Background function retries and termination

Background functions support optional retries as a way to increase the likelihood of events being successfully processed when functions involve operations that may fail intermittently. Retries can be enabled when deploying via command line by providing the --retry flag, or in the Cloud Console when configuring triggers under Advanced options Retry on failure.

Note that retries will be performed for up to seven days when retires are enabled. For this reason, Google recommends that a retry termination condition be included in the function definition, such as comparing the event's creation timestamp to the current time of execution.

As a convenience, background functions can be terminated in a number ...

Get Building Google Cloud Platform Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.