Scheduler receives Executor via a setter instead of a constructor

@rima-alali