search for: rails_cron

Displaying 20 results from an estimated 21 matches for "rails_cron".

2006 Feb 08
2
How to install RailsCron?
Hi, I would like to start running a background procedure once a user logs in to his account on the website. For this I am considering using the RailsCron object. However, I am not able to download it. I am new to Rails. Can someone give me the excat command I should use to get RailsCron? Can someone suggest a better way of running a procedure in the background? Thanks -Yash -- Posted via
2006 Mar 20
6
Rails and Offline processing
How are you guys handling threads or server processes that have to, for example, process the data in your application on a periodic basis? Cron jobs can do it and then run on the database. But, are there ways to launch threads within the rails application itself. I have heard of WebBrick ways, but I am working with lighttpd, fastcgi? (textdrive if you are really interested).
2006 Jul 27
1
Getting a MySQL deadlock when running RailsCron...
...d the cron job to the table, I have to make sure the model is loaded in environment.rb. MyObject.load However, I''m running 2-3 fcgi process on my server. Most of the time when I start lighty, I get a mysql deadlock error as the acts_as_background tries to delete and re-add itself to the rails_cron table: rails/current/public/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'': Mysql::Error: Deadlock found when trying to get lock; try restarting transaction: DELETE FROM rails_crons (ActiveRecord::StatementInvalid)...
2006 Jan 07
3
RailsCron 0.1 plugin
...you, have been searching for a good way to handle running long processes in Rails. So I rolled my own solution. I really want feedback! (I''ve tested this on very simple hello world examples, so don''t use it on anything production yet) . Grab the plugin: http://opensvn.csie.org/rails_cron Here''s the README: OVERVIEW ======== RailsCron is a way to execute background tasks using your Ruby on Rails environment. The RailsCron object is an ActiveRecord, so you can manipulate it in familiar ways: RailsCron.create( :command => "Object.do_something()",...
2006 Jan 28
1
RailsCron 0.2 questions
...In looking for the cause, I used Rails1.0 (via gem) instead of the svn rails trunk. Now I don''t get the error, and the RailsCron background job starts just fine. I can''t figure why -- $RAILS_TRUNK/activesupport/lib/active_support/core_ext/blank.rb does define String#blank? 2) in $RAILS_CRON/tasks/startup.rake, system calls to ruby are prefixed with "sudo -u #{ENV[''USER'']}". On my deployment host I won''t be a sudoer. For now I''ve simply removed the "sudo" portion of each command, and it seems to work. Am I inadvertently breaking s...
2006 Mar 27
4
How to create a daemon in a rails app
i want a daemon will check somthing every 10 minute how do this in rails? -- Posted via http://www.ruby-forum.com/.
2006 Feb 23
5
Q: Where to put a periodic updater?
Hello, I need to put a script in place for updating a local database with a remote resource periodically. It should be started alongside the server (or inside it, whatever) and be run as long as the server running my rails app is up an running. Any thoughts on how to accomplish this? I have thought of editing the environment.rb file and placing the call to the script trigger there, but I wonder
2006 Jan 25
24
RailsCron 0.2 plugin
...to see if the command is currently running, and doesn''t start a new one. You can overrride this with: RailsCron.options[:overlap] = true Is there a better name to use than overlap? Anyhow, have fun, and feedback is always welcome and encouraged! Repository: http://svn.kylemaxwell.com/rails_cron/ Bug Tracker: http://dev.kylemaxwell.com -- Kyle Maxwell Chief Technologist E Factor Media // FN Interactive kyle@efactormedia.com 1-866-263-3261
2006 Aug 01
2
making backgroundrb cron
Hello, i need to have some jobs scheduled in the background and executed at specific times. I wanted to make a worker who does that - and it works a little bit - but i had an enlightment... why not make bgdrb itself play that role? i mean, the MiddleMan has already everything needed! a timer thread, currently used only for deleting old workers and the workers itself. since im not familiar with
2006 Feb 07
4
RailsCron 0.2.2, please update
I updated RailsCron to fix some threading issues with ActiveRecord. Please update if you were on 0.2.1. Also, I am still working on a good unit test strategy (its tricky because I would think that the tests must occur over a lot of time), but haven''t had/made time to give it its due. If you have suggestions, please let me know. -- Kyle Maxwell Chief Technologist E Factor Media // FN
2006 May 01
1
Best way to do task in background in Rails
Hey everyone, I''m still getting up to speed with Rails and Ruby. Is there a best practice technique for kicking off a thread to work on an activity in the background? Here''s the scenario: the user performs an action that triggers e-mails to be sent. (I''m using ActionMailer). My app acknowledges with a message to the user that the messages have been sent. I would
2006 Feb 19
4
Sending Scheduled Email Ticklers
Hi All, I am developing a RoR app for managing community information and would like to have an summary of current events and interests mailed out monthly. The tickler email would be a basic summary of items and links back to the site. I would like to schedule the email delivery dates and have the app send out email to registered users that opted for this service. Once scheduled, a monthly
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
2006 Mar 24
10
Running Rails tasks by schedule, instead of an HTTP request.
Hi there I''m considering Rails for a new web-application planned to be built from scratch. The application has an extensive web front, and in fact most of the application is interfaced through that front and engaged through clients'' HTTP requests (i.e. the conventional way web-applications and "dynamic web-sites" work). However, some essential parts are supposed to
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 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL backend. The client now wants us to add various workflow features that will eventually expand into SOAP web services. These workflow features include tasks such as automatically sending reminders for due tasks, or if a particular set of information hasn''t been logged by a certain time to automatically send an email
2006 Aug 08
1
RailsCron for Oracle patch
Hi, maybe this is of use for some of you. RailsCron from http://svn.kylemaxwell.com/rails_cron/trunk does not work with an Oracle database out of the box. One thing is the usage of "start" as an attribute name, which is a reserved word in Oracle. The other thing is the datatype :text for the command column. This will become a CLOB which cannot be queried with an ActiveRecord se...
2006 Jul 25
3
Task scheduler
Does anyone know if there exists a Task Scheduler module in Ruby on Rails like in TurboGears below? http://www.turbogears.org/preview/docs/scheduler.html I''m using Ruby on Rails for a multiplayer online game and I want to set checks at regular intervals to see if users are still logged in etc. Thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Jan 20
1
Best way to execute timed actions?
I''ve seen this come up a few times before on this list but never felt it got a 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.
2006 Sep 05
0
rake craziness with Migrate as a dependency
...Started Finished in 0.0 seconds. 0 tests, 0 assertions, 0 failures, 0 errors c:\dve\ideeli_trunk\lib\tasks>rake db:migrate --trace rake db:migrate --trace (in c:/dve/ideeli_trunk) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment -- create_table("rails_crons") -> 0.1010s -- add_column(:rails_crons, :concurrent, :boolean) -> 0.2100s ** Execute db:migrate == Init: migrating ============================================================ -- create_table("colors", {:force=>true}) -> 0.0800s -- add_index("colors",...