Skip to content

Commit

Permalink
Merge pull request #339 from privacy-scaling-explorations/staging
Browse files Browse the repository at this point in the history
Staging to Main: increase memory limit for verify contribution cf
  • Loading branch information
ctrlc03 authored Nov 27, 2024
2 parents c612da8 + 86f0935 commit f22b9ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/functions/bandada.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const bandadaApi = new ApiSdk(BANDADA_API_URL)
export const bandadaValidateProof = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: BandadaValidateProof): Promise<VerifiedBandadaResponse> => {
const VKEY_DATA = {
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/functions/ceremony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const setupCeremony = functions
export const initEmptyWaitingQueueForCircuit = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.firestore.document(
`/${commonTerms.collections.ceremonies.name}/{ceremony}/${commonTerms.collections.circuits.name}/{circuit}`
Expand Down
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", cpu: 8 },
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 f22b9ca

Please sign in to comment.