How assign resources to a job