[Compass-ci] [PATCH compass-ci] scheduler: move and refactor function 'auto_submit_idle_job'