[PATCH compass-ci] scheduler/find_job_boot.cr: update tbox state when testbox requesting

3 Mar
2021
3 Mar
'21
7:38 p.m.
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 -- 2.23.0
1456
Age (days ago)
1456
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wei Jihui