get_run_sequence function

Get the run sequence of a schedule