amitree / delayed_job_recurring

Extends delayed_job to support recurring jobs
MIT License
84 stars 33 forks source link

Recommend "safe" schedule for use in initializer #6

Closed iamvery closed 9 years ago

iamvery commented 9 years ago

Does that make sense? We're still in the process of verifying this in our app.

afn commented 9 years ago

I would actually go even further and update the README not to recommend putting this in an initializer (which, as you correctly point out, is problematic because it ends up being called from multiple places) and instead set up a rake task as described in the blog post and call this task a single time as part of your deployment process.