Skip to content

Commit dc27674

Browse files
committed
fix(restore): increase memory
I'm seeing errors in the logs that it's running out of memory.
1 parent 830b7ee commit dc27674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import arcgis
44
from firebase_admin import initialize_app
5-
from firebase_functions import https_fn
5+
from firebase_functions import https_fn, options
66
from google.cloud import storage
77

88
from utilities import UnzipData, get_secrets
@@ -134,7 +134,7 @@ def recreate_item(item_id, category, generation):
134134
return published_item.id
135135

136136

137-
@https_fn.on_call()
137+
@https_fn.on_call(memory=options.MemoryOption.MB_512)
138138
def restore(request: https_fn.CallableRequest) -> str:
139139
print("begin request")
140140
item_id = request.data.get("item_id")

0 commit comments

Comments
 (0)