mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-24 08:51:48 -05:00
AC-1040 Model cleanup/refactor, add and use job_explanation field.
This commit is contained in:
@@ -99,7 +99,7 @@ def handle_work_error(self, task_id, subtasks=None):
|
||||
if instance.celery_task_id != task_id:
|
||||
instance.status = 'failed'
|
||||
instance.failed = True
|
||||
instance.result_traceback = "Previous Task Failed: %s for %s with celery task id: %s" % \
|
||||
instance.job_explanation = "Previous Task Failed: %s for %s with celery task id: %s" % \
|
||||
(first_task_type, first_task_name, task_id)
|
||||
instance.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user