From 799082bb896ef9dae07989941f65e3afb40600e3 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Thu, 9 May 2024 04:48:18 +0200 Subject: [PATCH] Add More Task States --- constants/constants.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index 2d8d7b6..bfdffa6 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -11,16 +11,22 @@ const INDEX_TEMPLATE_NAME = "index.tmpl" const LIBRARIES_TEMPLATE_NAME = "libraries.tmpl" const LIBRARY_TEMPLATE_NAME = "library.tmpl" const MESSAGE_TEMPLATE_NAME = "message.tmpl" -const TASK_TEMPLATE_NAME = "tasks.tmpl" +const TASKS_TEMPLATE_NAME = "tasks.tmpl" +const TASK_TEMPLATE_NAME = "task.tmpl" const ( TASK_TYPE_HEALTHCHECK = iota TASK_TYPE_TRANSCODE ) +// Non Append Changes Need Worker Version Bump const ( TASK_STATUS_UNKNOWN = iota - TASK_STATUS_RUNNING TASK_STATUS_FAILED TASK_STATUS_SUCCESS + TASK_STATUS_RUNNING + TASK_STATUS_QUEUED + TASK_STATUS_ASSIGNED + TASK_STATUS_PAUSED + TASK_STATUS_WAITING )