From b29242078bcf88005272b0fabfaf876e4a63f0f5 Mon Sep 17 00:00:00 2001 From: NicoSerranoP Date: Tue, 26 Nov 2024 11:54:36 -0500 Subject: [PATCH] fix: increase memory limit for verify contribution cf --- packages/backend/src/functions/circuit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/functions/circuit.ts b/packages/backend/src/functions/circuit.ts index cc0a870d..1d991a5e 100644 --- a/packages/backend/src/functions/circuit.ts +++ b/packages/backend/src/functions/circuit.ts @@ -460,7 +460,7 @@ const checkIfVMRunning = async (ec2: EC2Client, vmInstanceId: string, attempts = * 2) Send all updates atomically to the Firestore database. */ export const verifycontribution = functionsV2.https.onCall( - { memory: "16GiB", timeoutSeconds: 3600, region: "europe-west1" }, + { memory: "32GiB", timeoutSeconds: 3600, region: "europe-west1" }, async (request: functionsV2.https.CallableRequest): Promise => { try { if (!request.auth || (!request.auth.token.participant && !request.auth.token.coordinator)) @@ -895,7 +895,7 @@ export const verifycontribution = functionsV2.https.onCall( } } catch (error: any) { logAndThrowError(makeError("unknown", error)) - } + } } )