ruby on rails - Whenever running every 2 hours -


i facing problem make whenever running wish. example 2:45pm , want task run every 2 hours now. should run @ 4:45pm , 6:45pm, 8:45pm, 10:45pm ...

thank help.

have tried official docs? add (or create file if doesn't exist) config/schedule.rb:

every 2.hours   #your task here end 

or use raw cron syntax, somthing should fine:

every '45 */2 * * *'   #task end 

this should run job every 2 hours @ xx:45, i.e, 00:45, 2:45, etc.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -