Santosh Kumbhar
Santosh Kumbhar

Reputation: 313

Whenever gem how to work on windows system?

Gemfile

gem 'whenever', '~> 0.9.4',:require => false  

config/schedule.rb

every 55.minutes do
 runner "DailyAttendance.fetch_data"
end

Upvotes: 1

Views: 120

Answers (1)

a3y3
a3y3

Reputation: 1191

Cron is a linux application and does not exist on Windows.

Whenever gem does not schedule tasks on it's own, all it does it convert the cron syntax into a human readable form and supply it to the crontab.

Upvotes: 3

Related Questions