Specify how to wait for a job to complete