Displaying 20 results from an estimated 39 matches for "railsbased".
Did you mean:
railsbase
2007 Apr 27
0
Backgroundrb running under cygwin - having issue with Railsbase workers
Hello all,
We''re currently running version .1.x in our environment. We would like to
move to .2.x to take advantage of some of the improvements made running in a
multi-process environment. We deploy to a linux environment but develop
locally in Windows. I''m aware that a number of people have reported the
ability to run .2.x of backgroundrb inside cygwin, and for the most part,
2007 Jan 11
4
Load balancing
Hi,
Can somebody point me in the right direction about what approach would
be best to load-balance between two or more physical servers running
backgroundrb while using BackgrounDRb::Worker::RailsBase with mongrel?
Thanks,
Robert Bjarnason
2006 Nov 20
4
Production RAILS_ENV / DB Selection
Hey all,
I''m having some issues moving a project that incorporates Backgroundrb onto
a staging server... For some reason (surely of my own doing), my RailsBase
workers are insisting on using trying to access my development DB instead of
my "production" DB.
When I try to load a model object from within a worker, I get the following:
20061120-21:54:28 (26296)
2007 Feb 07
2
ncluding backgroundrb issue
I have the next including files structure :
- controller fileaA.rb including line (#8): require "fileB"...
- /lib/fileB.rb with main header: load ''backgroundrb/worker.rb''
load ''backgroundrb/
worker_rails.rb''
class FileB <
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
2007 Feb 22
1
failed to find slave socket - (RuntimeError)
Hi everyone,
I''ve a class that try to spawn two workers, every 5 seconds.
The code is something like:
while true do
MiddleMan.new_worker(:class => :researches_worker,:job_key
=> :researches)
MiddleMan.new_worker(:class => :products_worker,:job_key => :products)
sleep(5)
end
I''m using ":job_key", so if a worker hasn''t already ended its work
2007 Jun 25
3
one more "uninitialized constant" problem
Hi everyone,
I''m new to backgroundrb, and I''m trying to get started with a simple example, yet with no success.
This is the code that I have in RAILS_ROOT/lib/workers/testing_worker.rb
class TestingWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
# This method is called in it''s own new thread when you
# call new worker. args is set
2007 Nov 14
1
couple of questions
I''m using the latest backgroundrb. Do I need to setup a worker in
order to use it with Rails?
I remember using "Worker::RailsBase" before.
Also, how do I access the logger from within the worker?
Thanks a lot!
--
Lalo
2007 Apr 23
0
Using mapped database connections
This morning I switched over my backgroundrb server from development
mode to production mode. After that all I was getting was errors when
attempting to connect to the backgroundrb server. I checked the
backgroundrb_server.log file and noticed the following exception
20070423-10:30:00 (29673) development database is not configured -
(ActiveRecord::AdapterNotSpecified)
In my database.yml
2007 Jan 23
1
Getting results from a dead worker. example?
I''m having a little difficulty understanding how to retrieve results
from deceased workers (from the documentation it seems that it is
possible to do this).
I pasted my simple test below. If anyone could point out what i
should be doing differently i''d be very grateful.
My test worker:
class TestWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
2007 Jan 27
1
Memory leaks in backgroundrb
While debugging stale backgroundrb it became apparent that there''re
memory leaks in it. Here''s top object counts dump:
36715 String
6211 Array
5598 Proc
3150 Hash
1478 DRb::DRbObject
1313 Regexp
1272 Class
750 Thread
741 Socket
739 Slave
739 Slave::LifeLine
737 Process::Status
691 DrillReminderWorker
391 Module
160 Range
75 Gem::Version
2007 Apr 04
2
unit tests?
Ezra et al:
I have this problem:
http://rubyforge.org/pipermail/backgroundrb-devel/2006-December/000578.html
Any progress on it? Or are unit tests simply impossible for now?
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
2007 Jan 22
1
Strange behavior
Ok two things that bug me
1) http://backgroundrb.devjavu.com/projects/backgroundrb/ticket/48
i thought i''ll just post ticket link - but well - it''s strange
2) when i switch base class from RailsBase to Base i can''t access MiddleMan
- i get error
NameError: uninitialized constant MiddleMan
from (drbunix:///tmp/backgroundrbunix_localhost_2999)
2006 Dec 08
2
trouble using ActiveRecord classes
I''ve been trying unsuccessfully for the better part of today to write a
worker that can use by ActiveRecord model classes.
The bizarre thing is that worker just stops at the point accessing the
database connection. An exception isn''t raising, it just dies.
My worker class is below, I''ve interspersed log messages throughout to try
to determine where it is dying.
=====
2007 Jan 15
2
Backgroundrb keeps spawning processes
Hi!
I''ve just a created a really simple rails scheduled worker for
backgroundrb to start playing with :
class SessionCleanerWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
logger.info "SessionCleaner> started"
CGI::Session::ActiveRecordStore::Session.destroy_all( [''updated_at
<?'', 120.minutes.ago] )
2007 Oct 29
1
BackgrounDRb, Schedule and Clean Up
Hey all,
I''ve come accross BackgrounDRb and I have to say it''s a wounderful piece of software. It has the potential to solve so many of the problems that I am facing with a current RoR project.
Like many others I was having issues with the scheduling side of things, I noticed that hemant said there was a new version coming out. So I checked out the version from trunk, and have
2007 Sep 24
3
Trouble using backgroundrb
Hi all,
I''m a newbie to backgroundrb and am having trouble integrating it into
my rails-app. I''m using namespaces to differentiate between the parts of
my app.
When I want to create a new worker, it seems that it cannot find the
worker object. Here''s my code:
-------------------- controller app/passwd/index --------------------
class Passwd::IndexController <
2006 Feb 07
14
Production Server That Just Works?
Hi,
Love Rails...
I''m looking for a Production Quality Server that brings the same ease of
use as Rails does to web development.
I''ve tried TextDrive, and never got it to work. I''m sure there are good
reasons why it didn''t work but they are beyond me. I''ve contacted tech
support there several times, and it seems that there are so many setups
that
2007 Feb 14
1
Scheduling in backgroundrb not working
Hi ,
How do i schedule a job that can send emails at intervals of time
using backgroundrb and rails
For testing When i hit the controller i''m able send the emails.
but that is not i intend to do .....
I want to use backgroundrb and rails in which i''ll schedule a job
for every 5 minutes/ 1 minute or so..... to send an email
But when i write
2006 Dec 08
3
Thread Pool Size?
Hi All,
It might be lack of sleep, but I am struggling to accurately limit our pool
size. It seems like I can specify it on the server with the -s command
line option and also on the client via the YAML pool_size. Is that right?
Which one wins?
Our problem is that we are getting about 40 threads on each backgroundrb box
and it''s flooring our db and each bgrb box.
We want around 8.