Skip to content

Commit

Permalink
fix: increase memory limit for verify contribution cf
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoSerranoP committed Nov 26, 2024
1 parent 4adb103 commit b292420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/functions/circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<VerifyContributionData>): Promise<any> => {
try {
if (!request.auth || (!request.auth.token.participant && !request.auth.token.coordinator))
Expand Down Expand Up @@ -895,7 +895,7 @@ export const verifycontribution = functionsV2.https.onCall(
}
} catch (error: any) {
logAndThrowError(makeError("unknown", error))
}
}
}
)

Expand Down

0 comments on commit b292420

Please sign in to comment.