From f71e7cac93c6a23e12b38048bba3b5676c4f6e62 Mon Sep 17 00:00:00 2001 From: Jim Abramson Date: Fri, 12 Feb 2016 14:59:25 -0500 Subject: [PATCH] adjust comment about program certification retry --- openedx/core/djangoapps/programs/tasks/v1/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/programs/tasks/v1/tasks.py b/openedx/core/djangoapps/programs/tasks/v1/tasks.py index 7f6e52e76dfd..25cac668a8da 100644 --- a/openedx/core/djangoapps/programs/tasks/v1/tasks.py +++ b/openedx/core/djangoapps/programs/tasks/v1/tasks.py @@ -146,9 +146,9 @@ def award_program_certificates(self, username): countdown = 2 ** self.request.retries # If either programs or credentials config models are disabled for this - # feature, this task should not have been invoked in the first place, and - # an error somewhere is likely (though a race condition is also possible). - # In either case, the task should not be executed nor should it be retried. + # feature, it may indicate a condition where processing of such tasks + # has been temporarily disabled. Since this is a recoverable situation, + # mark this task for retry instead of failing it altogether. if not config.is_certification_enabled: LOGGER.warning( 'Task award_program_certificates cannot be executed when program certification is disabled in API config',