Ok, thank you. I think I understand it more now. On Wed, Jan 5, 2011 at 11:43 PM, Abel Tamayo <[email protected]> wrote: > I think you got it all wrong. Cron and Delayed Job are two completely > different and unrelated things; they don't have to work together. > Maybe you should take a look at the examples in the wiki as they're pretty > accurate both at showing you how to use and configure each and at helping > you chose which one is more appropriate in your case. > > On Wed, Jan 5, 2011 at 5:34 PM, chris <[email protected]> wrote: >> >> Cron and delayed_job are entirely separate things. >> >> You use cron if you want to run things daily (or hourly). Say you want to >> send a daily report to all your users, you would use the code your posted >> above. >> >> You use delayed_job if you want to run something in the background (email >> sending, heavy processing, etc) after something happens. Say, someone buys >> something from your site and you want to send them a receipt. You would do >> this via delayed_job, doing something like >> UserMailer.send_later(:notification_mail, user) >> >> Hope that helps! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Heroku" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
