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 )