Do deployment before running the scheduler