#362 Feature/move scheduler to rake task

#362 solved.