Skip to content

Commit

Permalink
Merge pull request #11539 from edx/jsa/fix-retry-comment
Browse files Browse the repository at this point in the history
adjust comment about program certification retry
  • Loading branch information
Jim Abramson committed Feb 12, 2016
2 parents fcfb0f4 + f71e7ca commit a052a30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openedx/core/djangoapps/programs/tasks/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a052a30

Please sign in to comment.