Skip to content
Snippets Groups Projects
Commit 200e3b7f authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Better identify when user processes are killed and provide an...

[backend] Better identify when user processes are killed and provide an explanation to the user in these cases
parent 0309994b
No related branches found
No related tags found
1 merge request!194Scheduler
Pipeline #
......@@ -1296,6 +1296,11 @@ class JobSplit(models.Model):
else:
self.status = Job.COMPLETED if \
result.status == 0 else Job.FAILED
if result.status in (-15, 15, -9, 9):
# job received a term/kill signal
if not result.usrerr:
result.usrerr = 'User process was ' \
'terminated by an external agent'
if result.id is None: result.save()
self.result = result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment