tbox state is running when job interruption, this tbox will always rebooting if no new job, so update tbox state when it requests job every time.
Signed-off-by: Wei Jihui weijihuiall@163.com --- src/lib/sched.cr | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/lib/sched.cr b/src/lib/sched.cr index bec90cd..51f493e 100644 --- a/src/lib/sched.cr +++ b/src/lib/sched.cr @@ -159,6 +159,7 @@ class Sched "time" => get_time, "deadline" => deadline } + @redis.update_wtmp(testbox.to_s, hash) @es.update_tbox(testbox.to_s, hash) end