Hi guys,
I was wondering if sb could guide me.
I want to create a thread that was started with rails server start up. This
Thread does some database update every day (automatically).
Sb knows where can I find some materials about it?
Thx

Bruno Meira

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Michael Pavling at Dec 30, 2011 at 2:02 pm

    On 30 December 2011 13:59, Bruno Meira wrote:
    Hi guys,
    I was wondering if sb could guide me. "sb" ?
    I want to create a thread that was started with rails server start up. This
    Thread does some database update every day (automatically).
    Sb knows where can I find some materials about it?
    It would be impossible to suggest anything without knowing more about
    your environment (at least, which OS).
    For instance, you might achieve what you want with cron, or scheduled tasks.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Bruno Meira at Dec 30, 2011 at 2:11 pm
    sb = somebody (Sorry, English is not my native language ;/ )
    Well, I'm using Debian.
    I want to run this task at the end of the day(This day could be given by
    the time in my server). This task will do some updates in my database.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Michael Pavling at Dec 30, 2011 at 2:22 pm

    On 30 December 2011 14:11, Bruno Meira wrote:
    Well, I'm using Debian.
    I want to run this task at the end of the day(This day could be given by the
    time in my server). This task will do some updates in my database.
    I would use cron to run a script.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Bruno Meira at Dec 30, 2011 at 2:26 pm
    Michael,
    It seems that this RailsCron gem is what I've been looking for. :D
    I will take a look in it.
    Thx
    :D

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Michael Pavling at Dec 30, 2011 at 2:36 pm

    On 30 December 2011 14:26, Bruno Meira wrote:
    Michael,
    It seems that this RailsCron gem is what I've been looking for. :D
    I will take a look in it.
    Really? If you insist. But it seems like overkill to add scheduling to
    your application for the requirement you described. But that's a
    decision that only you can make.

    TTFN

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Bruno Meira at Dec 30, 2011 at 2:53 pm
    I will try using this gem, If it not works properly or overload my
    application I will try using another approach.
    Thx a lot, Before your answers I didn't know how could I start doing this
    activity.
    :D

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Peter Hickman at Dec 30, 2011 at 3:55 pm
    That way the crons can also be maintained when you use capistrano and
    they will be deployed to new machines if needed. It makes a great deal
    of sense to bundle the application specific crons with he application
    itself.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Benjamin Iandavid Rodriguez at Dec 30, 2011 at 7:16 pm
    You also might want to have a look at the Whenever gem it provides neat
    syntax all done with ruby and integrates well with capistrano.

    https://github.com/javan/whenever

    Hope this helps!

    2011/12/30 Peter Hickman <peterhickman386@googlemail.com>
    That way the crons can also be maintained when you use capistrano and
    they will be deployed to new machines if needed. It makes a great deal
    of sense to bundle the application specific crons with he application
    itself.

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Gautam Pai at Dec 31, 2011 at 10:30 am
    +1 to "whenever" gem for the exact reasons benjamin points out.

    Gautam Pai
    On Sat, Dec 31, 2011 at 12:45 AM, Benjamin Iandavid Rodriguez wrote:

    You also might want to have a look at the Whenever gem it provides neat
    syntax all done with ruby and integrates well with capistrano.

    https://github.com/javan/whenever

    Hope this helps!


    2011/12/30 Peter Hickman <peterhickman386@googlemail.com>
    That way the crons can also be maintained when you use capistrano and
    they will be deployed to new machines if needed. It makes a great deal
    of sense to bundle the application specific crons with he application
    itself.

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Bruno Meira at Dec 31, 2011 at 2:29 pm
    Hmmm
    Thx... I will take a look in this whenever. It's seems easy to use. :D

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Zachary Scott at Jan 1, 2012 at 1:20 pm
    Also, check out [whenever](https://github.com/javan/whenever)

    On Fri, Dec 30, 2011 at 10:55 AM, Peter Hickman
    wrote:
    That way the crons can also be maintained when you use capistrano and
    they will be deployed to new machines if needed. It makes a great deal
    of sense to bundle the application specific crons with he application
    itself.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 30, '11 at 1:59p
activeJan 1, '12 at 1:20p
posts12
users6
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase