I'm using Google Cloud Functions via Firebase and was running into the default one-minute timeout and seeing Function execution took 60000 ms, finished with status: 'error'
in my logs.
I found I could modify my runtime/memory from 60s/256mb
to 500s/512mb
at https://console.cloud.google.com/functions/, but the next time I ran firebase deploy --only functions
, it set them back to the original 60s/256mb
values.
Is there any way I can modify my code so the deployed function has different runtime/memory defaults? Right now, I'm exporting my function like so:
export const myfunction = functions.pubsub.schedule("*/5 * * * *")
.timeZone("UTC")
.onRun(async (context) => {
await main();
});
I'm currently on v1 version of functions, and am not running locally