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

@@ -1263,10 +1263,6 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
if not all(opts.values()):
return False
# Sanity check: If we are running unit tests, then run synchronously.
if getattr(settings, 'CELERY_UNIT_TEST', False):
return self.start(None, None, **kwargs)
# Save the pending status, and inform the SocketIO listener.
self.update_fields(start_args=json.dumps(kwargs), status='pending')
self.websocket_emit_status("pending")