flatten the scheduler spec
update todo about error management