Displaying 20 results from an estimated 10000 matches similar to: "Backgroundrb alternative idea"
2007 Dec 18
1
where does process status get stored?
I''m just curious where does the process status get stored? Is it in the
backgroundrb process, or some external storage?
The reason I''m asking is because I have been doing stress testing by
creating thousands of workers (with uniq job_key), each does register_status
and exit after it''s done.
I have been monitoring the memory usage of the backgroundrb server. At first
the
2007 Nov 07
2
workers cleanup
Hi,
I''m using backgroundrb 0.2.1 and having problem with worker processes
staying around when the rails application does not explicitly delete
them.
Is there a way to automatically delete the worker processes when it
has completed the job?
Also does killing the process manually (using kill command) harm the
backgroundrb server? I have some occasions where the backgroundrb
server just
2007 Dec 18
1
process queue
I noticed that backgroundrb does some kind of process queueing now? When I
pounded the server to create 1000 workers, there are always only around
30-40 processes running at a time, which is good :)
Is there some configuration for adjusting the max process?
- reynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Dec 18
5
querying status of worker with job_key
Hi,
Is it possible to start a worker with job_key and then ask_status of that
specific worker with the job_key?
MiddleMan.ask_work(:worker => :auth_worker, :job_key=>''1'',
:worker_method => :auth)
and then
MiddleMan.ask_status(:worker => :auth_worker, :job_key=>''1'')
>From my testing of the new backgroundrb, asking status using job key
2008 Jan 02
3
disabling backgroundrb_debug.log
is there an easy way to disable logging to backgroundrb_debug.log?
Regards
- reynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080102/195dee18/attachment.html
2008 Mar 28
5
Upgrading from older version - how?
Hi there,
We''ve been using previous version of bdrb (drb based one) for a while
and it was running relatively OK. We recently attempted to upgrade to
the new version to keep up / use supported version but we ended up
reverting to the older version.
Here are the things that moved us to revert :
1) With the workers we never manage to pass this error:
''''
You have a nil
2007 May 15
6
Behaviour of pool_size setting
Hi,
I have backgroundrb running to decouple the execution of massive
business logic from an ActionWebservice request. The service is designed
to take some configuration parameters and fire a lot of background
workers to do the requested work. Due to performance reasons I want to
limit the number of workers to a maximum number of 30. But when I start
a configuration that requires for example
2006 Jul 20
5
RJS where to put helper method?
Hi,
If I want to have helper method for my rjs, where''s the best place to put
it?
so for example:
--- bla.rjs:
page.replace_html ...
page.visual_effect ...
--- somewhere: (currently I put in application_helper.rb)
def replace_with_effect(page)
page.replace_html ...
page.visual_effect ...
end
--- bla.rjs:
replace_with_effect page
and is there a way to define the helper so we
2006 Aug 15
3
Testing deleting files
In unit or functional test, is there a way to check that a file has been
deleted?
It seems that running the test does not really execute deleting files, which
is good because I don''t want it to actually delete the files. But can I
check that the deletion should have been performed in test environment?
thanks,
- reynard
-------------- next part --------------
An HTML attachment was
2006 Jul 14
5
migration and inserting default data
Hi,
I''m wondering is there a way to load default data in the migration script?
So, for example I''m creating new table to store the order status, I also
want to pre-populate the table with some data from a sql file.
I have done a quick search on the list but cannot find anything.
thanks,
- reynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jul 20
4
how does request.host get set?
how does request.host get set? Is there a way to manually set the
value in request.host?
I have several application servers running rails, each has its own
internal address in the request.host, so when calling redirect_to or
url_for function, it uses the internal address which is not accessible
to the user.
what I want is to set request.host to return mysite.com, no matter
which application
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 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
2006 Sep 23
6
Connection to backgroundrb is lost when exiting action method
Hey.
I have a very annoying problem, and was wondering what is wrong.
Suppose I have backgroundrb running, and then I have an action in some
controller. In the action I define a worker. When leaving the action,
suddenly the connection to backgroundrb is lost:
DRb URI: druby://localhost:22222
Pid: 3976
Autostart...
done
druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -
2006 Jun 13
6
why some features uses new and some just static function call
Hi,
when using prototype and scriptaculous, isn''t it confusing sometimes to
remember which ones you have to use new and which ones that are just static
function call.
For example:
new Insertion.Before(...);
new Effect.Opacity(...)
Effect.Fade(..);
Effect.Appear(...);
I havent really looked at the implementation, but out of curiosity, I''m just
wondering is there a reason some
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).
2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class.
The following line in my test (created from script/generate worker
Test) throws an error:
worker = TestWorker.new(:test_string => "testing...")
Error:
/activesupport/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant BackgrounDRb (NameError)
from
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 <
2006 Jul 26
4
BackgrounDRb - uninitialized constant
I installed BackgrounDRB as instructed:
script/plugin install svn://rubyforge.org//var/svn/backgroundrb
rake backgroundrb:setup
I started it with:
rake backgroundrb:start
In a model I make the call:
MiddleMan.new_worker :class => :rss_worker
In /lib/workers I have file rss_worker.rb, which contains the class:
Class RssWorker < BackgrounDRb::Rails
def do_work(args)
...
end
end
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