How to submit a job to the scheduler