Skip to content

Commit c48fcaf

Browse files
humitosstsewd
andauthored
Fix Docker memory limits (#12396)
Co-authored-by: Santos Gallegos <[email protected]>
1 parent aca2139 commit c48fcaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/settings/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,10 @@ def BUILD_MEMORY_LIMIT(self):
606606
# Only run on our servers
607607
if self.RTD_IS_PRODUCTION:
608608
total_memory, memory_limit = self._get_build_memory_limit()
609+
memory_limit = f"{memory_limit}m"
610+
else:
611+
memory_limit = default_memory_limit
609612

610-
memory_limit = memory_limit or default_memory_limit
611613
log.info(
612614
"Using dynamic build limits.",
613615
hostname=socket.gethostname(),

0 commit comments

Comments
 (0)