Add generics to schedule jobs