From 8acba216d7f462d2dc28e8390117c27ea5564ae2 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 15 Feb 2022 10:16:28 -0300 Subject: [PATCH] Comment: add comment from PR review This comment was suggested in https://github.com/readthedocs/readthedocs.org/pull/8917#discussion_r806318973 but the PR was already merged. --- readthedocs/core/utils/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readthedocs/core/utils/__init__.py b/readthedocs/core/utils/__init__.py index 352038e438a..5c98714b776 100644 --- a/readthedocs/core/utils/__init__.py +++ b/readthedocs/core/utils/__init__.py @@ -186,6 +186,9 @@ def prepare_build( project_slug=project.slug, version_slug=version.slug, ) + # Delay the start of the build for the build retry delay. + # We're still triggering the task, but it won't run immediately, + # and the user will be alerted in the UI from the Error below. options['countdown'] = settings.RTD_BUILDS_RETRY_DELAY options['max_retries'] = settings.RTD_BUILDS_MAX_RETRIES build.error = BuildMaxConcurrencyError.message.format(