Displaying 20 results from an estimated 6000 matches similar to: "BackgrounDRb - uninitialized constant"
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 23
0
Updates and Fixes and more of awesome stuff
1. Whenever you ask BackgrounDRb to perform a particular task using:
MiddleMan.ask_work(:worker => :rss_worker,:worker_method =>
:fetch_url, :data => "www.google.com")
Your task would be performed then and there. But, if your worker is
busy, task won''t be queued, except in socket buffer.
And your request may get lost. This isn''t generally a problem
2006 Aug 01
3
Multiple Instances Of backgrounDRb
I have an application setup as follows:
Core code is in:
/home/subdomain1/current
accessed at subdomain1.domain.com
I then have various instances of this app that are sym-linked to the
core (minus a custom config file and views) setup like:
/home/subdomain2/current
accessed at subdomain2.domain.com
I have backgrounDRb running to update a cache of RSS files.
Is there a way to get all
2006 Jul 10
2
''uninitialized constant'' error
Hi All,
I am fairly new to Ruby and backgroundRB. I am trying to run a simple example in Windows to get my feet wet with backgroundRB and am running into an ''uninitialized constant'' error when I invoke the controller on my rails app.
In ''MyTest'' Controller
-------------------
def longrun
session[:job_key] = MiddleMan.new_worker(:class =>
2006 Nov 21
0
Reusable workers
Hello,
I''m using the scheduler to create several reusable workers of the same type,
.e.g., RSSWorker, so I can avoid the overhead of initializing new processes
(as suggested by Ezra to my previous question). Creating new workers through
the external yaml seems pretty straightforward, but my question is is there
a way to call these workers without using the job key? Currently, to use
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
2008 Jan 14
3
problem with backgroundrb
hi, i am using drb and it is working fine on my local pc on windows..
and after uploading the code to the server it was working for
sometime but now it gives me error every time i invoke the process..
error---
uninitialized constant EmailWorker::Notifier - (NameError)
/usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:477:in `const_missing''
2006 Aug 07
2
uninitialized constants in worker class
I am new to this list and relatively new to the backgroundrb plugin,. So
first i will say hello to everybody here, especially to Ezra
Zygmuntowicz!
I played a little bit with a dummy worker and so far everything worked
well.
But now i want to do real work in a worker but now i get that error[1].
It looks like that the constants configured in environment* configs are
not available to the worker
2007 May 22
4
Recommendations for eternally-running backgroundrb workers?
I''ve got some workers that I want to have running all the time. Right
now I''m just launching them manually, by requesting a special page in
my rails app that includes lines like:
MiddleMan.new_worker(:class=> :receiver, :job_key=>:r,
:args=>{:sleep_time=>10})
This strikes me as a really weak way to fire up my workers. I
basically want to automate things so
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 <
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 Jul 14
4
Using BackgrounDRb to replace nested loops?
In response to my Rails Weenie post today[1], someone mentioned that
I try BackgrounDRb to help take the strain off my application.
1: http://rails.techno-weenie.net/question/2006/7/13/nested-loops-
best-way-to-send-messages-to-blog-subscribers
I''ve just tried to install and use BackgrounDRb with my app, but I''m
afraid that I''m not too versed in running processes
2006 Jul 18
7
backgroundrb and autotest
Hi,
First, thanks for the plugin. Sorry if this is not strictly a
backgroundrb issue but I thought others on this list might have come
across this problem.
I''m trying to run the test that comes via the worker generator. The
test works fine when running ''rake test_functional'', but when the
tests are run by autotest I get "uninitialized constant BackgrounDRb"
2008 Mar 21
5
State of backgroundrb (dupe?)
Hi, pardon if this is a duplicate mail, I forgot to click the
subscription link the first time around.
I''ve been using backgroundrb for a while now (older version) and I''ve
had so many headaches because of it that I began looking for a
replacement technology. And then I saw the new and shiny backgroundrb
website, looking good!
Initially I used the version maintained by
2007 Apr 04
6
Exception when doing DRb remote calls from a BackgrounDRb worker
Hello,
I am trying to make DRb calls to a external server from a backgrounDRb
worker, but I''m getting always the next exception when I make the remote
call.
> ERROR:
> drbunix:///tmp/backgroundrb.11175/experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928422051
> - #<Errno::ENOENT: No such file or directory -
>
2007 Jun 16
1
BackgrounDRB and Sqlite3 / Autotest / Memory_test_fix Issues
Hello all.
I am using BackgrounDRB with "great happiness and joy", however, I am
running into one problem in that when I am running my tests with
autotest using Sqlite3 3.3.17 I am getting
"ActiveRecord::StatementInvalid" exception inside of the
sqlite_adapter.rb:360 which is checking for an empty structure.
I thought it might be the version of Sqlite, so I upgraded to 3.3.17
2008 May 19
0
uninitialized constant BackgrounDRb::MetaWorker (NameError)
Hi All,
I am using backgroundrb to receive emails in my rails app. But I am unable
to start the Backgroundrb server. After doing this:
$ ./script/backgroundrb/start
I am getting following error:
???????????????????????????????
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
2007 Jan 19
6
Stopping DRb after using BackgrounDRb::MiddleManDRbObject.init
Hi,
I''m having a problem where connections started through
BackgrounDRb::MiddleManDRbObject.init are not stopped, resulting in an
ever growing established connections between my Mongrels and remote
backgroundrbs
I added DRb.stop_service to my code executed after requests that init
MiddleManDRbObjects but that does not help.
Any ideas?
Thanks,
Robert Bjarnason
2008 Jan 16
6
Backgroundrb 1.0.1: uninitialized constant Packet::ClassHelpers (NameError)
Hi,
just updated backgroundrb to release 1.0.1 and am getting this error when
trying to start backgroundrb.
vendor/plugins/backgroundrb/framework/core.rb:18: uninitialized constant
Packet::ClassHelpers (NameError)
Just updated from r298 where everything was working fine.
If I comment out the offending line then backgroundrb starts but I can''t
connect to it from my app.
Anyone have any
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