Moved initScheduler later in the container initialization process so
that dependencies are available.