#362 move scheduler to rake task

#362 Solved.