Skip to content

Commit 043cfb9

Browse files
committed
feat: Increase default memory_mb to 2048 for template build functions.
1 parent 3c7985f commit 043cfb9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ucloud_sandbox/template_async/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def _build(
3232
api_client: AuthenticatedClient,
3333
alias: str,
3434
cpu_count: int = 2,
35-
memory_mb: int = 1024,
35+
memory_mb: int = 2048,
3636
skip_cache: bool = False,
3737
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
3838
) -> BuildInfo:
@@ -173,7 +173,7 @@ async def build(
173173
template: TemplateClass,
174174
alias: str,
175175
cpu_count: int = 2,
176-
memory_mb: int = 1024,
176+
memory_mb: int = 2048,
177177
skip_cache: bool = False,
178178
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
179179
api_key: Optional[str] = None,
@@ -272,7 +272,7 @@ async def build_in_background(
272272
template: TemplateClass,
273273
alias: str,
274274
cpu_count: int = 2,
275-
memory_mb: int = 1024,
275+
memory_mb: int = 2048,
276276
skip_cache: bool = False,
277277
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
278278
api_key: Optional[str] = None,

ucloud_sandbox/template_sync/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _build(
3232
api_client: AuthenticatedClient,
3333
alias: str,
3434
cpu_count: int = 2,
35-
memory_mb: int = 1024,
35+
memory_mb: int = 2048,
3636
skip_cache: bool = False,
3737
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
3838
) -> BuildInfo:
@@ -173,7 +173,7 @@ def build(
173173
template: TemplateClass,
174174
alias: str,
175175
cpu_count: int = 2,
176-
memory_mb: int = 1024,
176+
memory_mb: int = 2048,
177177
skip_cache: bool = False,
178178
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
179179
api_key: Optional[str] = None,
@@ -272,7 +272,7 @@ def build_in_background(
272272
template: TemplateClass,
273273
alias: str,
274274
cpu_count: int = 2,
275-
memory_mb: int = 1024,
275+
memory_mb: int = 2048,
276276
skip_cache: bool = False,
277277
on_build_logs: Optional[Callable[[LogEntry], None]] = None,
278278
api_key: Optional[str] = None,

0 commit comments

Comments
 (0)