google cloud function has 500ms of additional overhead that i cant trace
I’ve setup a google cloud function which takes less than 100ms to run (checked through cloud logging). However when i call the function it takes around 600ms. I dont think this is a cold boot issue as I’m running it in a tight loop (using benchmarkify).
You must assign the Invoker role (roles/run.invoker) through Cloud Run for 2nd gen functions
I’m trying to invoke my Gen 2 Firebase function from my IOS app.
It has been working fine for several months, until I redeployed it today, and now all of a sudden, users from my app receive Unauthenticated
when trying to invoke it.
Automatic security update of google cloud function images
I’m having troubles to fully understand what’s the best way to update cloud functions images to get rid of vulnerabilities inside them. From what I understand from here, there are 2 update policies – Automatic and On deployment. I have some google cloud functions deployed (python3.11 runtime) and I see from “gcloud functions describe <function_name>” that there is a “automaticUpdatePolicy: {}” field which (from what I understand) means that Automatic update policy is on. However I’m not sure that the images are automatically updating. I see that some images that corresponds to some cloud functions have updated automatically but some are last updated months ago. Maybe Automatic Update somehow checks if cloud function is still used? I can’t find more details about how this works in documentation. On few images there is a Critical vulnerability ,with available fixed package version, which I should fix in few days according to SLA but I don’t know how can I speed up the process. I’ve redeployed the function and it solved few of Medium vulnerabilities but the Critical one remains. Best for me would be to have some status of next automatic update or maybe to be able to manually trigger the update to latest runtime version. I don’t know if there is some easy way to redeploy cloud function on your own image to have better control on that. What do you think? Do you have some tips & tricks to handle it, or maybe there is some better parts of documentation that I couldn’t find that would explain more how the update process works.
Error deploying a specific firebase cloud function – Provided module can’t be loaded
I have deployed this function before with no issues and I have not changed the code apart from
adding the code “.runWith({ timeoutSeconds: 540, memory: “1GB”} )” as it had timed out and had an error. Now I just get the error below when deploying.
Removing old logs for cloud functions
I am using this command:
How to add secret to Background Gen2 Cloud functions
In gen 1 http request we have
How does Global Variables work on Firebase Function 2nd Gen?
Functions 1st Gen were able to only handle 1 request per instance, so, every global variable was going to be shared for the whole instance, until the instance dies.
What is the UserRecord (Contex) equivent in V2 cloud functions type interface?
I am trying to type my fucntinos and cannot find the type defenction in the new api , any idea what is the new name for the interface ?
testing gen 2 cloud function using jest error
I have the following code for those 2 module the goal is to test this v2 cloud function, and i am getting the following 3 errors. any clue of what is causing this.
Issue with migrating a v1 cloud function with a specific runWith call to V2?
I have an issue with the following functions i want to migrate the code base from v1 to v2, the docs mention require and my env use imports, in this migration i suppose to add the run with parameter as first arg but nothing is working.