From 249017a4fac72a622369ff0104eacedf20e16329 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 2 Aug 2024 18:08:18 +0200 Subject: [PATCH] Added error message to task list --- cps/tasks_status.py | 1 + cps/templates/tasks.html | 1 + 2 files changed, 2 insertions(+) diff --git a/cps/tasks_status.py b/cps/tasks_status.py index 49feb67c..268200d4 100644 --- a/cps/tasks_status.py +++ b/cps/tasks_status.py @@ -82,6 +82,7 @@ def render_task_status(tasklist): ret['task_id'] = task.id ret['stat'] = task.stat ret['is_cancellable'] = task.is_cancellable + ret['error'] = task.error rendered_tasklist.append(ret) diff --git a/cps/templates/tasks.html b/cps/templates/tasks.html index 4d645aa5..83d4e804 100644 --- a/cps/templates/tasks.html +++ b/cps/templates/tasks.html @@ -16,6 +16,7 @@ {{_('Progress')}} {{_('Run Time')}} {{_('Start Time')}} + {{_('Message')}} {% if current_user.role_admin() %} {{_('Actions')}} {% endif %}