Merge "Track periodic and flex intervals in ScheduledJobStateChanged events" into main