It looks like this puzzle has been seen before:
I also searched some Google support cases and found one dated 2023-03-06 with identity: case 43822050
It presented exactly as yours does. The core of the case was:
At the moment, the inconvenience you are experiencing with the Cloud Functions 2nd Gen being hung in a broken state seems to be related to a known issue with Cloud Run deployments we were reported of.
After further reviewing your project’s Cloud Functions, I’ve noticed both have this error message when selecting them and clicking on “Show More” for the first alerting message: “Cloud Run service for the function was not found. The function will not work correctly. Please redeploy”.
The Engineering team has worked on a new patch to avoid new deployments from facing this same issue, and has informed that the best solution is redeploying the services. Because of this, could you click on any of these functions and then proceed to the “Edit and Redeploy” button showing on the “This function has failed to deploy and will not work correctly. Please edit and redeploy” message?
To follow up with the issue you are facing, if the button is still grayed out, could you try to redeploy via the Google Cloud CLI? You may find helpful information in this link [1]. To deploy the function with an HTTP trigger, run the following command in the directory that contains the sample code:
gcloud functions deploy [YOUR_FUNCTION_NAME]
–gen2
–runtime=nodejs16
–region=us-east1
–source=.
–entry-point=[YOUR_CODE_ENTRYPOINT]
–trigger-http
–allow-unauthenticated
*If you require authentication, please omit the [–allow-unauthenticated] flag.
This will help us “unlock” the hung Cloud Functions from your project, and after this you should be able to deploy and monitor your Functions as you desire, not only from the CLI.
Following this was a response from the customer that it worked.