Displaying 20 results from an estimated 5000 matches similar to: "bgrb won''t start"
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.
2007 Dec 15
10
1) Error 2) sending request to a specific worker
Hello !
1) I have this error logged by bdrb:
undefined method `send_request'' for nil:NilClass
framework/packet_master.rb:58:in `ask_worker''
backgroundrb/server/master_worker.rb:59:in `process_work''
backgroundrb/server/master_worker.rb:16:in `receive_data''
backgroundrb/framework/bin_parser.rb:29:in `call''
backgroundrb/framework/bin_parser.rb:29:in
2008 May 30
5
Upper limit to number of jobs queued by BDRb?
I use BDRb to process RSS feeds for users on my site (http://feedflix.com).
I have a batch job that queries the DB for records that haven''t been updated
in the last so many hours and kicks off a background job for each of them.
If N records are returned by the DB, N background jobs gets queued and get
done serially. As long as N is 255 or under, everything works like a charm.
2007 Dec 14
4
Error when loading backgroundrb
I''m getting the following error (when doing script/backgroundrb start)
on my local machine, which is running os x 10.4.11. However, it
works just fine on my linux server.
RAILS_ROOT/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:64:in
`dump_object'': undefined method `write_nonblock'' for #<UNIXSocket:
0x135b5f4> (NoMethodError)
I just grabbed the
2007 Dec 17
11
BackgrounDRb release 1.0 available now
Hi Folks,
I am glad to announce 1.0 release of BackgrounDRb.
This would be a major release since 0.2 release of BackgrounDRb.
Here is a brief summary of changes:
- BackgrounDRb is DRb no longer. It makes use of EventDriven network
programming library packet ( http://packet.googlecode.com ).
- Since we moved to packet, many nasty thread issues, result hash
corruption issues are totally
2008 May 17
1
Can someone help with this error?
Hello all,
I get this intermittent error saying OpenURI::HTTPError. At the bottom of
the email is what is reported in my backgroundrb_server_<port>.log file. The
process_netflix_reviews method is parsing (in the background) Netflix''s RSS
feeds. This error also pretty much brings down the BDRb process and to
recover, I am forced to do a
./script/backgroundrb stop
2008 Jan 22
11
Unable to load Models which reference plugins?
I''m using a plugin which adds a method to ActiveRecord::Base
http://similetimelinerailshelper.googlecode.com/svn/trunk/simile_timeline/
This adds an "acts_as" type declaration to the Models, via the file in
vendor/plugins/simile_timeline/lib/simile_timeline.rb Rails is working
with these declarations, and they are being used successfully in
''regular
2007 Feb 05
3
Deploying to production with backgroundrb (capistrano)
I have noticed that occasionally (about 50% of the time) when i
deploy (using capistrano) my app to a production server, i have to
ssh into the box and manually
stop and start backgroundrb to get it to load my workers.
this is my basic setup
i have 2 workers:
lib/workers/mp3_worker.rb => takes a hash of params to downsample an
mp3
lib/workers/flv_worker.rb => takes a has of
2007 Mar 05
4
nil object / slave server problem
I''m just getting started wtih backgroundrb, and unfortunately hit a
snag right away... I''m running the latest releases of rails,
backgroundrb, slave and daemons.
I created a simple worker class, using the generator, which currently
does nothing but print the arguments that are passed to do_work. I''m
running backgroundrb using ''./script/backgroundrb
2008 Jan 13
2
{worker} after :end-time worker freaks out
Hi all,
i was using bdrb a while ago and it wasn''t stable enough in version
0.2.1 for doing the job - it loss jobs or did execute only the first one
invoked and so on.
Now i gave the new version a try and i found a bug at playing around.
When i start a worker_method over the normal Unix scheduler bdrb will
start as much as possible the worker_method after the :end-time is reached.
2007 Dec 12
3
BDRB, new version questions
Hi,
we are trying to use BDRB for background processing of long-running
reports, and have two issues - one is that worker does not see our
Report class from Rails, throws a:
/var/apps/ror_trunk/vendor/plugins/backgroundrb/server/master_worker.rb:22:in
`load'': undefined class/module Report (ArgumentError)
from
2007 Dec 19
6
thread_pooling sleeping
I''m trying to run a single worker that could perform a periodic task
for a given user.
>From a controller, I imagine something like:
def start_job
MiddleMan.ask_work(:worker => :foo_worker, :worker_method => :perform_task,
:data => { :user_id = current_user.id })
end
def check_job
@status = MiddleMan.ask_status(:worker => :foo_worker)[current_user.id]
end
2007 Mar 30
3
example code for file upload
I have an archiving application that handles large file uploads. I
already use backgroundrb to run a behind the scenes bulk import of
records. All good. Thank you Ezra.
Now I would like to add long running file uploads to the things that
backgroundrb does for me. That''s right that ole chestnut. I''ve seen
a lot of mention of this practice around the web, but have yet
2007 Feb 04
2
Can BackgrounDrb help me?
I have a big report to produce from a Rails app that takes several minutes
to put together. I hoped backgroundrb would be able to pull together all
the ActiveRecord stuff in the background then throw it back to Rails for
rendering.
It seems, however, that I can''t pass an array of ActiveRecord objects from
the worker back to Rails. Do I have that right?
Another possibility was to do
2007 Nov 14
7
BackgrounDRb version 1.0RC1 available now
Hi Folks,
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be
used with Ruby on Rails applications for offloading long-running tasks.
Since a Rails application blocks while serving a request it is best to
move long-running tasks off into a background process that is divorced
from http request/response cycle.
This new release of BackgrounDRb is also modular and can be used
2008 Nov 20
1
Stopping bdrb from another process gets the process killed
Hi, I''ve been having some issues integrating bdrb on a cruisecontrolrb
server
It''s related to the way we stop the bdrb server. The thing is, right now
when we stop the process we are killing the parent of the group of the
process. This is ok if you''re running script/backgroundrb stop directly from
the console, but if I''m running this from another process,
2007 Jun 04
2
backgroundrb scheduler
I''ve been having a terrible time with the backgroundrb scheduler. The
issues I''m having is that the scheduled actions aren''t ran at all and if
they do, the process stays around forever. I''m using the backgroundrb as a
nightly cron to run some accounting operations.
questions:
1. How can I have the process destroyed after the worker completes?
2. Any idea on
2007 Dec 14
1
Logging & Threading
Hey again,
After playing with BackgrounDRb a bit longer, I have two more issues I''d
like to bring up with it.
1. Logging... it seems like even when the environment is set to production
in both Mongrel and the backgroundrb.yml file, all ActiveRecord SQL
statements are written to the development log. If you''re doing a lot of
ActiveRecord stuff in your workers, then the
2007 Feb 03
3
Backgroundrb-devel Digest, Vol 9, Issue 1
Hi Bill,
I have "version 1" backgroundrb running on my development server with
rails 1.2.1, with no issues (other than the left over DB connections
blocking up my MySQL server, which isn''t exactly a new problem).
Going to move production servers to rails 1.2.1 very soon, I''ll post
back if there''s any trouble.
Still would *really* like to get version
2007 Feb 02
7
logging problem in production
Greetings all;
I''ve just moved my app into production and BackgrounDRb is writing to development.log. The backgroundrb.yml file specifies production, as does environment.rb.
A little background (no pun intended ;-0 ) I''m using the ''old'' version of backgroundrb for session management. In the app, whenever a visitor changes pages I record the time in a db