search for: railscron

Displaying 20 results from an estimated 35 matches for "railscron".

2006 Jan 07
3
RailsCron 0.1 plugin
...ng 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()", :start => 2.minutes.from_now, :every => 12...
2006 Feb 20
5
RailsCron: error message
Hi, I''m trying to use RailsCron but keeping getting an error when I try to run it. I''m a beginner, so please use small words :) -bash-2.05b$ rake cron_start (in /home/jake/rails_sites/testsite) Syntax error: "&" unexpected The little bit I know about my environment: - RailsCron installed as a plug in (n...
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 http://www.ruby-forum.com/.
2006 Feb 11
1
Instructions required for RailsCron
...abases. Periodically, I would like them to synchronize their databases. For this, in the application, once the user logs in, I want to spawn a background process at the client that first sends the client''s new data and then receives the server''s new data. I am thinking of using RailsCron for this. However, after installing RailsCron, I am not able to figure out how to start a background process. Do I have to explicitly start a program on command line, or can I do it from the client application itself? The README mentions a file called RailsCron.start. But this file is not prese...
2006 Feb 23
1
RailsCron: ''every'' in background
Got another question. It''s unclear to me what "every" means in the background function and how it relates to the RailsCron.create "every": >From README: RailsCron.create( :command => "Object.do_something()", :start => 2.minutes.from_now, :every => 12.hours, # default: 1.day :finish => 2.years.from_now # optional ) class Emai...
2006 Jan 25
24
RailsCron 0.2 plugin
I received feedback from some of you, saying that it would be cool if RailsCron was even easier to manage. So I implemented a graceful start/restart inside of the plugin''s init.rb. If you don''t like it, comment it out and send me the feedback. Also, I finished an update to RailsCron that allows you to attach asynchronous processing methods to your ActiveRe...
2006 Jan 28
1
RailsCron 0.2 questions
Hi all, I''ve set up RailsCron to send email reminders on a daily basis. My dev environment is Rails trunk on Debian Sarge, lighttpd running as a regular user. I''m having two issues: 1) When I run "rake cron_start", I get rake aborted! undefined method `blank?'' for "":String The "bl...
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 whic...
2006 Jul 13
1
RailsCron usage question
I''m yet another person looking to do some background Rails processing. >From post & the wiki, it looks like I should be using RailsCron. So I''m about to start playing. In parallel, I''d like to get some opinions re: database access. I have a table that I''d like to re-fresh periodically in the background. Is it safe, using RailsCron, to be accessing a table that my View code will be accessing as wel...
2006 Jun 30
2
Development of RailsCron
Hi, Is the development of Rails Cron still active? most of the blog articles about it are unavailable and it hasn''t been updated for a long time. -- Abdur-Rahman Advany http://blog.railsdevelopment.com/
2006 Feb 24
1
RailsCron: Trigger one time
...metimes it didn''t. There seems to be a race condition. 4) start=Time.now, every=7.minutes, finish=5.minutes.from_now - Presumably, this should execute once. And indeed, it does. But then if I do RailsMaintainer.new again, it never triggers again. I have to restart the RailsCron process. Requests: 1) An option to trigger a job 1 time at a particular time 2) When you get the time, a more detailed description of the timing would be very helpful. The biggest question for us is how sure can we be of when an event triggers? We''d like to say, send an email reminder a...
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 suggestion...
2006 Jul 27
1
Getting a MySQL deadlock when running RailsCron...
I''m using RailsCron, and it''s working out very well for me. However, I''m having one problem right now. I use the acts_as_background on one of my model objects. In order to get it to add the cron job to the table, I have to make sure the model is loaded in environment.rb. MyObject.load However, I&...
2006 May 10
2
Circular dependency issue in startup
Hi all ! I am adding observers to some model objects. One of these uses RailsCron. RailsCron adds a class method to ActiveRecord::Base. Unfortunately, during the initialization phase, plugins aren't yet loaded, so I can't setup my observers in config/environment.rb, as suggested by the comments. What's a poor dev to do ? At the moment, I have fallen back to this:...
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 Feb 14
7
Action when database changes
Hello, Is it possible to trigger an action in a controller when a table from database changes? I thought about using an utility like cron (railscron) to check every, e.g. 2 s, if the table changed, but I am wondering if there is a solution a bit more ''elegant'': to trigger an action exactly when the change is made. Best regards, -- Kuba Nowak
2006 Apr 04
1
Running external scripts that know about a minimal Rails env
I''ve been exploring the options for running external scripts from the Rails env. The list I have is this: Cron ScriptRunner (in the script/ dir under rails projects) RailsCron The most likely candidate for me is the ScriptRunner because my external script needs to know about a model which it has to save to the database from my Rails environment, and it needs to start running as soon as I tell it to. Unfortunately, running this external command many times in a row i...
2006 Mar 04
2
Using the rails configuration outside rails
I have a ruby class that will be used sometimes from within rails, and sometimes from without (not in the context of a running rails application). It will reference models within the rails app, and It may be run manually, or may be scheduled via Cron (though I may look at RailsCron as well). I''ve seen help on the Wiki for using models outside of Rails (like this article<http://wiki.rubyonrails.com/rails/pages/HowToUseActiveRecordOutsideRails>), but I''d rather not repeat my database configuration. Is there a better way to do this? -- Larry Wright http:/...
2006 Aug 07
2
Process status...
I''ve used Railscron in a couple instances, and I liked that fact that it has a rake task for checking the status of the process. Many times I use it in the admin interface to allow me to double check that everything is up and running. I couldn''t find one for backgroundrb, so here is a simple one. Probably o...
2006 Feb 28
5
Session Sweeping
Hi, Anyone got some slick ideas on how to sweep an AR session store? I have a few ideas how I can do it, just want to see if there is an elegant solution that someone is already using. Bob Silva http://www.railtie.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: