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