Skip to content

Commit

Permalink
more memory and timeout for history.gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Chetan Padia committed Oct 10, 2024
1 parent 6a7041d commit f3aab26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ export const imagePng = functions.https.onRequest(async (request, response) => {
}
});

export const historyGif = functions.https.onRequest(
async (request, response) => {
export const historyGif = functions
.runWith({ memory: "2GB", timeoutSeconds: 540 })
.https.onRequest(async (request, response) => {
try {
const [depthSnapshot, historySnapshot] = await Promise.all([
database.ref("canvas").child(IMAGE_ID).child("depth").once("value"),
Expand All @@ -87,5 +88,4 @@ export const historyGif = functions.https.onRequest(
} catch (error) {
response.status(500).send(error);
}
}
);
});

0 comments on commit f3aab26

Please sign in to comment.