From 14aa6d5a01b3ee11038c41e2babb5b6833f44658 Mon Sep 17 00:00:00 2001 From: stdavis Date: Fri, 27 Sep 2024 15:35:08 -0600 Subject: [PATCH] fix(restore): increase memory I'm seeing errors in the logs that it's running out of memory. --- functions/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/main.py b/functions/main.py index c5e0a9d..a9c1e6e 100644 --- a/functions/main.py +++ b/functions/main.py @@ -2,7 +2,7 @@ import arcgis from firebase_admin import initialize_app -from firebase_functions import https_fn +from firebase_functions import https_fn, options from google.cloud import storage from utilities import UnzipData, get_secrets @@ -134,7 +134,7 @@ def recreate_item(item_id, category, generation): return published_item.id -@https_fn.on_call() +@https_fn.on_call(memory=options.MemoryOption.MB_512) def restore(request: https_fn.CallableRequest) -> str: print("begin request") item_id = request.data.get("item_id")