Just-in-time Scheduling