clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

:at should be supported in hourly tasks as well

Open idris opened this issue 15 years ago • 2 comments

You should be able to use the :at option for hourly tasks as well, not just daily. For example:

every(1.hour, "ten.after.job", :at => "**:10")

idris avatar Sep 16 '10 21:09 idris

+1 for :at option on hour

stevewilhelm avatar Jul 24 '11 05:07 stevewilhelm

Yes, that's needed.

At the moment I do it that way (it runs 24 clocks which is inefficient, but does the job):

[*'00'..'23'].each do |hr| every(1.day, "Task name", :at => "#{hr}:10") end

funtusov avatar Aug 05 '11 07:08 funtusov