Skip to content

Commit 1e5f3f0

Browse files
committed
Build: auto-disable ACKS_LATE for long builds
If the project has a custom `Project.container_time_limit` we make the task to be `acks_late=False`.
1 parent aca2139 commit 1e5f3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def prepare_build(
161161
# At 1h exactly, the task is grabbed by another worker and re-executed,
162162
# even while it's still running on the original worker.
163163
# https://github.com/readthedocs/readthedocs.org/issues/12317
164-
if project.has_feature(Feature.BUILD_NO_ACKS_LATE):
164+
if project.has_feature(Feature.BUILD_NO_ACKS_LATE) or project.container_time_limit >= 3600:
165165
log.info("Disabling ACKS_LATE for this particular build.")
166166
options["acks_late"] = False
167167

0 commit comments

Comments
 (0)