thunderbird_accounts.mail.tasks
Classes
Holds the domain's verification lock for as long as the task is retrying. |
- class thunderbird_accounts.mail.tasks.VerifyCustomDomainTask[source]
Bases:
PatientExternalServiceTaskHolds the domain’s verification lock for as long as the task is retrying.
- on_retry(exc, task_id, args, kwargs, einfo)[source]
Retry handler.
This is run by the worker when the task is to be retried.
- Arguments:
exc (Exception): The exception sent to
retry(). task_id (str): Unique id of the retried task. args (Tuple): Original arguments for the retried task. kwargs (Dict): Original keyword arguments for the retried task. einfo (~billiard.einfo.ExceptionInfo): Exception information.- Returns:
None: The return value of this handler is ignored.
- on_failure(exc, task_id, args, kwargs, einfo)[source]
Error handler.
This is run by the worker when the task fails.
- Arguments:
exc (Exception): The exception raised by the task. task_id (str): Unique id of the failed task. args (Tuple): Original arguments for the task that failed. kwargs (Dict): Original keyword arguments for the task that failed. einfo (~billiard.einfo.ExceptionInfo): Exception information.
- Returns:
None: The return value of this handler is ignored.