firebase / functions-samples

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase
https://firebase.google.com/docs/functions
Apache License 2.0
12k stars 3.83k forks source link

onTaskDispatched when region is set the function don't deploy to the region in sample: #1106

Closed alexfernandez803 closed 9 months ago

alexfernandez803 commented 9 months ago

Which sample has a bug?

Sample name or URL where you found the bug https://github.com/firebase/functions-samples/blob/3313875c66090c1e8f9e4cb202dd4daa096f18d1/Node/taskqueues-backup-images/functions/index.js#L44

How to reproduce the issue

set a region on onTaskDispatched


exports.sampleTask = tasks.onTaskDispatched(
  {
    region: "us-east4",
    retryConfig: {
      maxAttempts: 5,
      minBackoffSeconds: 60,
    },
    rateLimits: {
      maxConcurrentDispatches: 6,
    },
  },
  async (req) => {
    console.log(req);
    console.log("requesting render");
    await render();
  }
);

The region does not have affect on deployment, it is still deployed to us-central1.

Failing Function code used (if you modified the sample)

Steps to set up and reproduce

Debug output

Errors in the console logs

Screenshots

Expected behavior

Actual behavior