Skip to content

Commit 93747c1

Browse files
fix thresholds
1 parent 16cca4b commit 93747c1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bigframes/functions/_function_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,13 @@ def get_remote_function_specs(self, remote_function_name):
742742

743743
def _infer_milli_cpus_from_memory(memory_mib: int) -> int:
744744
# observed values, not formally documented by cloud run functions
745-
if memory_mib < 512:
746-
raise ValueError("Cloud run supports at minimum 512MiB per instance")
747-
elif memory_mib == 512:
745+
if memory_mib < 128:
746+
raise ValueError("Cloud run supports at minimum 128MiB per instance")
747+
elif memory_mib == 128:
748+
return 83
749+
elif memory_mib <= 256:
750+
return 167
751+
elif memory_mib <= 512:
748752
return 333
749753
elif memory_mib <= 1024:
750754
return 583

0 commit comments

Comments
 (0)