I'm trying to set a Whenever job that should be executed 2 times a day, exactly at 11am and 11pm. Is there any way to do it with only one block? I mean something like this:
every :day, :at => ['11am','11pm'] do
runner "Task"
end
Just pass an array to the :at
option.
every :day, at: ["11am", "11pm"] do
runner "Task"
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With