Fixed job detail crash when running job is killed
[ais.git] / bin / djais / views.py
index 82b0d2e413087f9c47a80526132003a75b0d5488..a2eec223359eb6458f1181279eca7a3f8c7ec38d 100644 (file)
@@ -775,6 +775,9 @@ def job_get(request, jobid):
         total_wait += 1
         if total_wait > 15:
             request.user.info('Your query is slow. Please be patient.')
+            if not job.notify:
+                job.notify = 'W' # Web
+                job.save()
             return HttpResponseRedirect('/job/%s/' % job.id)
         job = get_object_or_404(Job, id=jobid)