Scheduler should start only when app starts and not when imported. (scheduler started in __name__=='__main__' section)