firebase/functions-samples

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

alexfernandez803 opened this issue · 0 comments

Which sample has a bug?

Sample name or URL where you found the bug

exports.backupapod = onTaskDispatched(

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