[Compass-ci] [PATCH compass-ci] sched: refactor sched class for the close job function