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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.