clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

skip_first_run option is not being honored

Open tboyko opened this issue 8 years ago • 4 comments

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.

tboyko avatar Nov 17 '17 05:11 tboyko

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'

rafbm avatar Dec 13 '17 16:12 rafbm

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

tboyko avatar Dec 13 '17 17:12 tboyko

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

tonyc avatar Oct 16 '18 20:10 tonyc

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

morgoth avatar Oct 20 '21 15:10 morgoth