mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-14 14:23:27 +01:00
Weekely scheduling on weekday at given time not work #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @trustarun on GitHub (Nov 8, 2017).
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