Use 'shadow' in request for the task name if applicable.
(request, default)
| 148 | |
| 149 | |
| 150 | def get_task_name(request, default): |
| 151 | """Use 'shadow' in request for the task name if applicable.""" |
| 152 | # request.shadow could be None or an empty string. |
| 153 | # If so, we should use default. |
| 154 | return getattr(request, 'shadow', None) or default |
| 155 | |
| 156 | |
| 157 | def get_actual_ignore_result(task, req): |
no outgoing calls