crono
crono copied to clipboard
Weekely scheduling on weekday at given time not work
class DataCsvReport def perform Rake::Task['DataReconciliation:pull_tables_csv'].execute end end
this do not work Crono.perform(DataCsvReport).every 1.week, on: :wednesday, at: {hour: 18, min: 45}
Below is my system time and date to make sure setting passed above is correct 2.2.2 :021 > Time.now => 2017-11-08 18:41:05 +0530 2.2.2 :022 > Time.now.to_date => Wed, 08 Nov 2017
All other scheduling like daily, hourly etc working fine as expected:
Crono.perform(DataCsvReport).every 1.day, at: {hour: 18, min: 59} Crono.perform(DataCsvReport).every 5.minutes