Clean up scheduler code

See commits

Merge request reports

Loading