Displaying 20 results from an estimated 200000 matches similar to: "bdrb without rails?"
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 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 Nov 16
1
Backgroundrb with Load Balancing Rails engines
Hi there,
We run several (3-4) Rails servers behind the reverse proxy / load
balancing web server serving the single application. All Rails
instances share the same database and use the database as a session
storage. Memcached is also part of the picture.
I''m looking into using Backgroundrb for some large uploads / parsing
task that provide progress status updates (via ajax calls).
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.
2006 Nov 07
2
start a worker when bdrb starts
I am sure..again I am missing something, but I am trying to start a
worker, when backgroundrb starts and it doesn''t seem to work.
Here is my config/backgroundrb_schedules.yml file:
feed_worker:
class: feed_worker
job_key: feed_worker_key
worker_method: do_work
trigger_args:
repeat_interval: 20.minutes
I even tried this from Rails controller:
# def start_feed_worker
#
2008 Jul 05
2
Question on number of processes engendered by BDRb
I have two workers (ie two files in my RAILS_ROOT/lib/workers directory) on
my Rails app. When I run a top on my box, I see *three* processes called
packer_worker_r. Shouldn''t I just be having two? What is the third process
for?
Here is an extract of the output from my top command. The PIDs are 7084,
7085 and 7083.
============================================
PID USER PR NI VIRT
2008 Mar 25
1
extending bdrb / running multiple servers
Hi,
Thanks for the help getting the new backgroundrb working, things are
working fabulously now.
I have two questions:
1) I have a few basic methods I need available on all my workers in
order to communicate properly with my application... it seems to make
the most sense right now to subclass BackgrounDRb::MetaWorker, or make
a mixin module, because I''m actually extending some
2008 May 20
1
Couple questions on BDRb and concurrent processing
My Rails site uses BackgroundDRb and I have a couple of questions:
1. Can someone point me to some sample code/examples for how to use
thread_pool? The website doc says to add a line
======
pool_size 10
======
in my Worker class which seems straightforward.
I wasn''t able to understand this part though:
=========
thread_pool.defer(wiki_scrap_url) { |wiki_url| scrap_wikipedia(wiki_url) }
2008 Jan 13
3
right usage of bdrb
Hi,
i''m going to implement a syndication-service, which will get lists in
xml with some meta-data an enclosed video files, which will get encoded
at the end. The syndication run will be startet every five minutes of
a full hour.
So i thought to build 4 Worker. One for checking which feeds to
syndicate (syndication_worker) at a specific time, one for processing
the list
2008 Apr 03
0
Packet error on startup
Hi,
New BackgrounDrb user struggling for a couple of days to
get things up an going.
System:
Ruby 1.8.6
Packet 0.1.5
chronic 0.2.3
BackgrounDrb 1.0.3 (downloaded 4/02/08 and 4/03/08)
I installed the packet and chronic gems as per instructions.
I used git to download BDrb as per instructions and ran the
rake setup script.
When I run script/backgroundrb from my rails app main
directory, I get
2006 Nov 04
1
BackgrounDRb Call for help
Hey there bdrb''ers!
I have been so very busy with http://engineyard.com that I have not
had time to complete the new release of backgroundrb. But I have done
substantial work towards it. It is basically an entirely new beast
with a complete rethinking of how it works. I have put up a zip file
of the new code base in the hopes that some folks will be able to
start playing with
2008 Apr 03
2
Two Rails Apps, One Backgroundrb Server?
This might be a really simple question, with a simple solution. I
have two rails apps running on the same box. Right now I am starting
two Backgroundrb servers (11006 and 11007). Wondering if it might be
possible to run only one and have the second app point to the first
app''s server?
TIA,
Kit
2007 Dec 12
1
worker cleanup
I was using an older version of backgroundrb and today I started to
play with the most recent release. First up, I''d like to say, thanks
so much for this library and thanks for making it more stable. From
the looks of things, I think it''s going to be easier to use now than
it was several months ago when I first started using it.
I''d like to make sure I''m using
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 03
1
models loading
Hi there,
In the latest releases bdrb attempts to load all models during startup
routine. We have models that depend on the particular RUBY_PLATFORM
but they live in the same models directory. It seems that the
inability to load them stops bdrb. Could the models requiring /
loading be done one demand, the same as Rails does?
thanks,
emil
2008 Jan 15
1
actionmailer the background
I have bdrb successfully set up and running in a local project. It''s
doing two things:
1) processing large csv files and using ActiveRecord to insert
2) sending large batches of emails using ActionMailer
In development both work well. I see my ActionMailer emails in the
log (though it''s the development.log -- odd?)
On the production server csv processing works well, but
2007 Feb 19
0
Hello world
Hi-
Danny Burkes here from Lingr (http://www.lingr.com). We''re
evaluating bdrb and so far, so good. It''s deployed in staging now
and seems to be working fine. I have a couple of questions that I
couldn''t find references to in the archive, so here it goes-
1. Is there any way to do a "graceful" stop of bdrb? What I mean
is, I want to stop bdrb,
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 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 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many
instances of in parallel.
Couldn''t get pool_size to limit the amount of workers, and I figure
that''s hardly optimal anyway, so would like to have the work queued up
for a single named worker instead, running as soon as possible.
Using MiddleMan.schedule_worker() with :job_key does start off a