Rykian / clockwork

A scheduler process to replace cron.
MIT License
544 stars 66 forks source link

skip_first_run option is not being honored #33

Open tboyko opened 7 years ago

tboyko commented 7 years ago

The following declaration causes the block of code to run at startup:

every(5.minutes, 'MyTask.scheduled_task', skip_first_run: true) { MyTask.delay.scheduled_task }

Happy to provide any additional information that is of use.

rafbm commented 6 years ago

That must be because latest gem version 2.0.2 was released on March 18 and :skip_first_run option was merged into master on August 13.

Use this in your Gemfile and it should work:

gem 'clockwork', git: 'https://github.com/Rykian/clockwork'
tboyko commented 6 years ago

@rafbm Thanks for this information. When do you anticipate publishing the changes to a new gem version?

tonyc commented 6 years ago

I just ran into this, and I'd also like a rubygems-published version :)

morgoth commented 3 years ago

Looks like this should be released https://rubygems.org/gems/clockwork Can this be closed @tboyko ?