From 5f33b613365d8f8913aba98819af6dd29e4907ff Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 8 Jul 2008 15:10:31 +0000 Subject: [PATCH] constants: Add job and opcode status strings Reviewed-by: iustinp --- lib/constants.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/constants.py b/lib/constants.py index 327c8e4ea..f61602072 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -243,3 +243,15 @@ IALLOCATOR_SEARCH_PATH = _autoconf.IALLOCATOR_SEARCH_PATH IARUN_NOTFOUND = 1 IARUN_FAILURE = 2 IARUN_SUCCESS = 3 + +# Job status +JOB_STATUS_QUEUED = "queued" +JOB_STATUS_RUNNING = "running" +JOB_STATUS_CANCELED = "canceled" +JOB_STATUS_SUCCESS = "success" +JOB_STATUS_ERROR = "error" + +OP_STATUS_QUEUED = "queued" +OP_STATUS_RUNNING = "running" +OP_STATUS_SUCCESS = "success" +OP_STATUS_ERROR = "error" -- GitLab