It can be used to display statistics on a certain type of machine.
Signed-off-by: Wu Zhende <wuzhende666(a)163.com>
---
src/lib/sched.cr | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib/sched.cr b/src/lib/sched.cr
index 1359f95..7a9e4d8 100644
--- a/src/lib/sched.cr
+++ b/src/lib/sched.cr
@@ -174,10 +174,12 @@ class Sched
job["job_state"] = "boot"
state = "booting"
job_id = job["id"]
+ tbox_group = job["tbox_group"]
else
deadline = nil
job_id = ""
state = "requesting"
+ tbox_group = JobHelper.match_tbox_group(testbox.to_s)
end
type = get_type(testbox)
@@ -189,7 +191,8 @@ class Sched
"deadline" => deadline,
"queues" => queues,
"type" => type,
- "name" => testbox
+ "name" => testbox,
+ "tbox_group" => tbox_group
}
@redis.update_wtmp(testbox.to_s, hash)
--
2.23.0