From e2743083963781478159952acf8006316116a5ef Mon Sep 17 00:00:00 2001 From: Awais Jibran Date: Mon, 11 Jun 2018 23:25:47 +0500 Subject: [PATCH] Update the initial try delay to reduce the occurance of this `DatabaseNotReadyError` due to replica lag. EDUCATOR-3004 --- lms/djangoapps/grades/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/grades/tasks.py b/lms/djangoapps/grades/tasks.py index 295ebcac7c..8b59238a4b 100644 --- a/lms/djangoapps/grades/tasks.py +++ b/lms/djangoapps/grades/tasks.py @@ -41,7 +41,7 @@ KNOWN_RETRY_ERRORS = ( # Errors we expect occasionally, should be resolved on r DatabaseNotReadyError, ) RECALCULATE_GRADE_DELAY_SECONDS = 2 # to prevent excessive _has_db_updated failures. See TNL-6424. -RETRY_DELAY_SECONDS = 30 +RETRY_DELAY_SECONDS = 40 SUBSECTION_GRADE_TIMEOUT_SECONDS = 300