projects
/
ais.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed job detail crash when running job is killed
[ais.git]
/
bin
/
djais
/
views.py
diff --git
a/bin/djais/views.py
b/bin/djais/views.py
index 82b0d2e413087f9c47a80526132003a75b0d5488..a2eec223359eb6458f1181279eca7a3f8c7ec38d 100644
(file)
--- a/
bin/djais/views.py
+++ b/
bin/djais/views.py
@@
-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)