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
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.
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.
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.
Michael,
It seems that this RailsCron gem is what I’ve been looking for.
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.
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.
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.