Why is "retry on failure" grayed out in the Google Cloud Functions console?

Viewed 471

I'm setting up some Cloud Functions to handle Firestore document events. I'm using the standard firebase deploy --only functions command to deploy my functions. When I follow the instructions in this doc, I go to the configuration for my function on the GCP console and see the checkbox I need to enable is grayed out, with no further info:

cloud function trigger configuration

Any ideas as to why I can't enable auto-retry through the GCP console? The aforementioned docs describe this approach (through the GCP console) as the only way to enable retries. Ideally I could annotate my functions code in some way that enables/disables retries per function.

1 Answers

To answer my own question... just had to click the EDIT button on the top toolbar to make the checkbox editable:

function details toolbar

Would still be nice to have a way to do this on deployment, either through a flag to the firebase deploy command, or through code annotation.

Related