Updating CPUs and Memory for a Cloud Function and Deployment is stuck

Hi,
I updated the CPUs and Memory to be 2 CPUs and 1GiB of Memory and Deployed the changes and it said it was Updating... but I haven't seen a Success message in over an hour or something. 

waqadArshad_0-1704673441293.png

What could I be doing wrong because I do not see an error?

P.S Another thing I would like to mention is that I tried setting it up in the code like so:

waqadArshad_1-1704673600650.png

But it gave me an error when I tried to deploy from cli:

waqadArshad_2-1704673662698.png

Even though I have set up the max instances 10 as so:

waqadArshad_3-1704673695310.png

I have also tried putting cpu: 2 in this setGlobalOptions, but that gives me the same error as shown above.

1 1 275
1 REPLY 1

Hello @waqadArshad,

Welcome to the Google Cloud Community!

You can do the following troubleshooting options:

  1. Take a look at this Stackoverflow post as you might have the same issue. You need to use the setGlobalOptions function from the firebase-functions/v2 package. You can do this by importing:
    import { setGlobalOptions } from "firebase-functions/v2";

    //use code if you're not using ES module
    const {setGlobalOptions} = require("firebase-functions/v2");
  2. If the above option doesn't work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!