cron job at specific hours #58

Open
opened 2025-12-29 00:22:04 +01:00 by adam · 1 comment
Owner

Originally created by @jxzhangxing on GitHub (Jul 30, 2019).

How can I do something like this:
Crono.perform(WeatherForecast).every 1.day, at: ['1:00', '2:00', '3:00']

Originally created by @jxzhangxing on GitHub (Jul 30, 2019). How can I do something like this: Crono.perform(WeatherForecast).every 1.day, at: ['1:00', '2:00', '3:00']
Author
Owner

@iwan commented on GitHub (Nov 10, 2021):

['1:00', '2:00', '3:00'].each do |time|
   Crono.perform(WeatherForecast).every 1.day, at: time
end
@iwan commented on GitHub (Nov 10, 2021): ``` ['1:00', '2:00', '3:00'].each do |time| Crono.perform(WeatherForecast).every 1.day, at: time end ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#58