diff --git a/beat/web/backend/models.py b/beat/web/backend/models.py index 35444db46502feba162b17c30ed035865a03a689..5cb4951c39d4853fcb5a4ff7c63c07f2bca0f570 100644 --- a/beat/web/backend/models.py +++ b/beat/web/backend/models.py @@ -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