Scheduler working with batches and jobs