How to schedule a resource to switch from a job to another