How to set a length for a job