Commit 1af5e2ab by Eric Fischer Committed by GitHub

Retry-while-retrying is not an error in bulk email (#13068)

This code will be hit if, during a retry of the send_email task, an error
is encountered that means we need to retry the task again. Since the task will
be retried with timed backoff up to predefinied limits, this is an expected
situation and does not need to be logged as an exception.
parent 056d27f8
......@@ -795,8 +795,11 @@ def _submit_for_retry(entry_id, email_id, to_list, global_email_context,
raise retry_task
except RetryTaskError as retry_error:
# If the retry call is successful, update with the current progress:
log.exception(u'Task %s: email with id %d caused send_course_email task to retry.',
task_id, email_id)
log.info(
u'Task %s: email with id %d caused send_course_email task to retry again.',
task_id,
email_id
)
return subtask_status, retry_error
except Exception as retry_exc: # pylint: disable=broad-except
# If there are no more retries, because the maximum has been reached,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment