search for: howtorunbackgroundjobsinrail

Displaying 7 results from an estimated 7 matches for "howtorunbackgroundjobsinrail".

2006 Jan 20
1
Best way to execute timed actions?
...satisfactory answer. What is the best way to execute timed actions? Examples include sending an email each week, calculating interest each day, or cleaning up your database or server files. This wiki page has some ideas, but these seem a bit extreme. http://wiki.rubyonrails.com/rails/pages/HowToRunBackgroundJobsInRails I''ve also seen people suggest using cron to execute script/runner: script/runner -e production "Model.some_method()" It seems to me you could also have cron execute a wget to a page like: wget http://www.domain.com/controller/action/id And I vaguely remember someone saying...
2006 May 29
3
Timer for executing events
Hi Everyone, I hope you guys can help me out. What is the best way to go about using a timer to execute events? I would like to execute a block of code every 24 hours (or at midnight - server time). Is this possible? What I am trying to get at is that I would like to create a new page every 24 hours and have that serve as my front page. Is it possible to route to this ''new
2006 Jun 27
1
Utility App using rails models
I have a few maintenance programs that run periodically via cron. I learned how to use rails model files in those apps w/o much problem. However, the problem came about when one of my models, then many of my models began using plugins. Now I find that with each new plugin I use in my models, I have to go back to each of my utility apps and specifically require that plugin in order for
2006 Jan 23
3
running a background task/thread in rails?
Hi, I am new to ruby and to rails, but I like what I see so far. I have been working on a web app in java (servlets and JSPs) that, based on a request from the user, kicks off a thread in the background to perform a task (puts messages in an MQSeries queue). The thread object is stored in the session and I then allow the user to control the task from the browser(like stop it). Is the same
2007 Apr 26
3
What to use to do an action every minute?
Hey, I need to have a process running that will do something every minute (check value of some stuff). Is there something in Rails that I can use to do this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2006 Jun 27
5
Rails cronjob?
I want to be able to write a script in Ruby which regularly consumes an XML feed from a fixed source, re-formats it, produces a large file for web delivery, and updates a database with the contained information. It''s simple - just running a script from a cron job, and some basic data manipulation... But I''d prefer to use the Rails database mapping constructs than roll my
2006 Mar 20
16
Secret URLs and file downloads
I''m looking to do something similar to the "secret URLs" in Rails Recipes, however, with file downloads. I want to avoid providing direct URLs to people if possible. I have files on disk in public/, so it would be good if each user got a "unique" URL to each file that they are permitted to see (dealt with by a user_id/file_id table). Then they are only allowed