[Compass-ci] [PATCH compass-ci] scheduler: refactor function 'auto_submit_job'