Displaying 20 results from an estimated 2000 matches similar to: "RailsCron: ''every'' in background"
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 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 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 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 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 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 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 "blank?" method is provided by Rails, so I''m
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.
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 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 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 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
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 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 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:
# Require all
2007 Apr 06
2
Best way to start a worker
I have installed backgroundrb.  I can start it.  I have read everything I
can get my hands on, and have read the list for a few months.  I have
written a worker, and am ready to start.
 
This worker reads a queue, and processes it (sends queued emails). Sends 10,
sleeps for a minute, sends 10 until done - very straightforward.
 
My question is, what would be the best way to run this?  I have
2006 Mar 31
4
Date magic?
Hi.
When I read Dave and Davids excellent book "Agile Web Development with
Rails" the first time, I was particularly impressed with the following
statement:
1.day.from_now
It was used in a test class to set the date of tomorrow dynamically. Since
it was enclosed in in ERb tags, I assumed this was a normal ruby statement,
but when I tried it in my irb, i get the following error:
2008 Aug 30
3
Working with sessions in beast forum
Hey,
I''m designing an app which displays the events near a user in RoR. I''m
using the beat forum to facilitate user management/sessions/etc. I''ve
edited the sessions table in the Beast database to contain a
"session_location" value and what I''d like to do is to set this to the
users location when they log in. This would allow them to change their
2006 Dec 01
2
Mongrel 0.3.18, rails 1.1.6 and cookies
I''ve run into an issue with my rails application being unable to
properly set cookies on Mongrel  0.3.18. If I run the simplified code
below in Mongrel 3.14.4, both cookies are properly sent to and saved
by the browser. With the same code in 0.3.18, only the auth_token
cookie is created (if I switch them, only the userid as it will only
properly create the first cookie in the list.)
2006 Jul 25
4
Knowing when a user is logged in
I am looking into creating a website similar to a chat program.  I know 
when the user logs in.  However, the user can log out any of the 
following ways:
Logout link - This one is easy to handle
User closer browser window
User hits the back button
User loses his/her internt connection.
Is there a way within rails to handle the latter three user actions?
Thanks!
-- 
Posted via