remove setting corresponding to removed tests

This commit is contained in:
AlanCoding
2018-04-16 14:49:54 -04:00
parent 8a55b7f296
commit 4ff2f3e061
3 changed files with 2 additions and 7 deletions

View File

@@ -1032,7 +1032,7 @@ class BaseTask(Task):
except Exception:
logger.exception(six.text_type('{} Final run hook errored.').format(instance.log_format))
instance.websocket_emit_status(status)
if status != 'successful' and not hasattr(settings, 'CELERY_UNIT_TEST'):
if status != 'successful':
# Raising an exception will mark the job as 'failed' in celery
# and will stop a task chain from continuing to execute
if status == 'canceled':