From 7b92d3ccff623606bfd9558695afefb1d8dd1945 Mon Sep 17 00:00:00 2001 From: cahrens Date: Fri, 5 Aug 2016 09:34:33 -0400 Subject: [PATCH] Reduce the number of retries. This task will get run twice, 5 minutes apart. Because of that, it can run up to 6 times with max_retries set to 2. --- lms/djangoapps/verified_track_content/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/verified_track_content/tasks.py b/lms/djangoapps/verified_track_content/tasks.py index a127924f83..fce883d0b4 100644 --- a/lms/djangoapps/verified_track_content/tasks.py +++ b/lms/djangoapps/verified_track_content/tasks.py @@ -15,7 +15,7 @@ from openedx.core.djangoapps.course_groups.cohorts import ( LOGGER = get_task_logger(__name__) -@task(bind=True, default_retry_delay=60, max_retries=4) +@task(bind=True, default_retry_delay=60, max_retries=2) def sync_cohort_with_mode(self, course_id, user_id, verified_cohort_name, default_cohort_name): """ If the learner's mode does not match their assigned cohort, move the learner into the correct cohort.