Improve scheduled pause/resume for priority groups.

Set pause/resume state based on scheduled events when adding job or changing its priority.
No change to jobs when changing schedules.