Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekely scheduling on weekday at given time not work #68

Open
trustarun opened this issue Nov 8, 2017 · 0 comments
Open

Weekely scheduling on weekday at given time not work #68

trustarun opened this issue Nov 8, 2017 · 0 comments

Comments

@trustarun
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant