Displaying 20 results from an estimated 600 matches similar to: "RailsCron 0.2 questions"
2006 Jan 07
3
RailsCron 0.1 plugin
I, like many of 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
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 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 (not gem, cause I''m on a shared host)
- Debian Linux
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''m running 2-3 fcgi process on my server. Most of the time
when
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 ActiveRecord models. i.e.:
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 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 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 select.
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of
file_column actually sees this. I was wondering if there were any plans to
allow some configurability in the file_column plugin. By configurability I
mean allowing the developer to define which table column is used as the
unique identifier when creating image folders. Right now it seems like it
uses the ID of the
2006 Feb 03
6
Rails from the command line
I have controller that processes data in one table and puts results in
another. Now that its'' working, I would like to be able to run it from the
command line ( read: windows batch file). How can this be done?
It will be installed on a Windows box with InstantRails1.0, (if that
matters).
I will be doing more processes like this, so this is a good opportunity to
get it right.
--
Best
2006 Feb 11
1
Instructions required for RailsCron
Hi,
I am writing a client-server rails app. The client and server maintain
similar databases. 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
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 =>
2006 Jan 31
6
How to Affect Plugin Load Order
I''m using bundled_resource, login_engine, and a few other plugins. It
appears Rails considers plugins in alphabetic order. Turns out that
there is a particular order that will work and alphabetic ain''t it.
The login engine must be loaded first. Bundled resource then includes
''application_helper'' and the application helper includes LoginEngine. If
2006 Feb 04
3
I just can''t figure it out !
Howdy RailsWarriors,
Its probably dead easy but I don''t see it.
Got this in my controller.
def new_computer
User.find(params[:id]).computers.create(:comp => ''New Comp:'')
end
Which with an .rjs template creates a div at the bottom of my list.
This all works like a charm.
But in the partial I load in my rjs I also have a button for ''delete'' in
the
2005 Dec 23
10
Extending model
Hi,
I''m looking for a way to extend one of my models to allow some level
of abstraction between what goes into it and how it is stored.
For example, say I have a Product and I want to set it''s price. A
person using the website will type the price in euros. Internally, I''d
like to store the price as an integer value of cents.
I can currently do this with some ugly code
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All:
I''m writing my 1st Rails app and I can''t seem to find the answer on
the web or in the book.
I''m making a table, and I want to be able to expand a filename. The
code is basically as as follows below. In the last <td> entry, I want
to call an action and pass in the test_results_path, which I will go
and read a file and munge the data for a separate
2006 Feb 24
1
RailsCron: Trigger one time
Hi Kyle,
Thanks for your help so far. Now that I have it up and running, I''ve some
behavior questions.
I want to trigger an event just one time at a future time. I''m using some of
your sample code to try this, but the behavior of some combinations of start,
every, and finish behave in some unpredictable ways.
3 class RailsMaintainer
4 include ActsAsBackground
2006 Jan 30
2
:condition not being applied
I am using acts_as_taggable and everything seems to be working except that
:condition => "tags_resources.portal_id=#{portal_id}"
is not being applied.
@resource_pages = Paginator.new self, Resource.find_tagged_with(:any => tag, :condition => "tags_resources.portal_id=#{portal_id}").length, 25, @params[''page''];
@resources
2006 Feb 05
30
Emacs rails.el
Features:
* Management WEBrick - start, stop
* Viewing log files
* Abbrev from TextMate
* Switching between View/Action
http://www.emacswiki.org/cgi-bin/emacs/rails.el
2005 Apr 20
4
acts_as_list and single table inheritance
in a single table inheritance model, rails will automatically set the
scope for acts_as_list to the ''type'' field as well as any other scope
conditions we provide.
Is there a way to disable this? i want to use STI but I want
acts_as_list to disregard the class type when getting/setting
positions.
thanks
alan