Skip to content

Commit

Permalink
fix(restore): increase memory
Browse files Browse the repository at this point in the history
I'm seeing errors in the logs that it's running out of memory.
  • Loading branch information
stdavis committed Sep 27, 2024
1 parent 7b28314 commit 14aa6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 14aa6d5

Please sign in to comment.