So i have a Rails application running on heroku with free dyno. I have a heroku scheduler working, and daily at midnight i want to perform some tasks.

My question is, since i have a free application, when the application sleeps can i have problems with the scheduler?

Basically, if my application is sleeping around midnight will the scheduler still do it's job? Or do i have to pay for a better service on heroku in order to stop this sleep time?

I have tried to research about it, but could not find anything.