Merge pull request #226 from chrismeyersfsu/fix-7399

reap waiting processes if crash
This commit is contained in:
Chris Meyers
2017-08-09 14:44:37 -04:00
committed by GitHub
6 changed files with 110 additions and 21 deletions

View File

@@ -758,7 +758,7 @@ class BaseTask(LogErrorsTask):
'''
Run the job/task and capture its output.
'''
instance = self.update_model(pk, status='running', celery_task_id='' if self.request.id is None else self.request.id)
instance = self.update_model(pk, status='running')
instance.websocket_emit_status("running")
status, rc, tb = 'error', None, ''