Skip to content

Weekely scheduling on weekday at given time not work #68

@trustarun

Description

@trustarun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions