Displaying 20 results from an estimated 30000 matches similar to: "Can''t get BackgroundRb to work"
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
2008 Apr 04
0
Can''t get backgroundrb to work with rails plugin ''batched_sql_fu''
Trying to use backgroundrb to process and insert a large list of bulk
records, but when I try to use it with the batched_sql_fu plugin
installed in vendor/plugins, I get the following error:
---SNIP---
/Users/jdonalds/Sites/3dial_ads/config/../vendor/plugins/
batched_sql_fu/lib/batched_sql_fu/active_record.rb:22:in
`alias_insert_sql_to_batched_version!'': undefined method
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
2006 Jun 12
0
BackgrounDRb New Release
Hey Folks-
I have just pushed a new release of BackgrounDRb to rubyforge. It
has some nice new features to allow for usage of your ActiveRecord
Models within your worker classes. I also added a config file for
setting hosts and ports and if you want to load rails or not.
Please have a look and let me know if anyone runs into any issues.
If you already have an older version installed then you
2006 Dec 19
0
BackgrounDRb after restarting server
i get this:
undefined method `object'' for nil:NilClass
when i try to get the status of a worker after backgroundrb has been
restarted using a job key saved in the DB. how do i get around this?
i know the process is nonexistent, but shouldnt it return something
more friendly if it doesnt exist? am i forgetting something? Thanks!
-Jerrod
Jerrod Blavos
ph. 919.341.0143
fx.
2009 Oct 15
7
PLZ HELP - ROR on Redhat Linux :: Problem with backgroundrb
Hi,
I have successfully crossed all the hurdles to install Ruby on rails on
a redhat 5 Linux based system.
But the last and the biggest hurdle i am facing at this moment is
installing backgrounrb :(
I followed all the steps from the http://backgroundrb.rubyforge.org/
1. sudo gem install chronic packet
2. script/plugin install svn://rubyforge.org/var/svn/backgroundrb
[IMP:::: I had to drop
2006 Dec 31
0
backgroundrb 0.2.1 doesn''t always load rails environment
I found this stack trace in my logs. My worker name is MiscWorker,
and Qualifier is a Rails model.
uninitialized constant MiscWorker::Qualifier: /Users/bryan/
Workspace/sandbox/scraper-trunk/config/../vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:476:in
`const_missing''
/Users/bryan/Workspace/sandbox/scraper-trunk/lib/workers/
2006 Aug 24
1
ActionMailer doesn''t work in backgroundrb
I am pretty confident that mailers do not work in backgroundrb. Can
anyone confirm this? Because when I try to do
Notifier.deliver_some_method I get an error saying it cant find the
templates for my email. The funny thing is that when I run script/
runner Notifier.deliver_some_method it works just fine. Any ideas?
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
O: 800-341-6826
M:
2007 Apr 06
0
Data changes in backgroundrb task don''t show up in Rails
BackgrounDRbers:
We pass a data batch to a background task for processing. When it
finishes, our GUI updates correctly (using the results hash). But the
data records don''t appear in the Rails connection to the database.
Our stack is the HEAD BackgrounDRb, Rails 1.1.6, MySQL, and Apache/mongrel.
As soon as I whack the background process with script/backgroundrb
stop, the data records
2006 Jul 26
3
svn command doesn''t work when trying to install plugins
Trying to install BackgroundRdb
$ script/plugin install svn://rubyforge.org//var/svn/backgroundrb
sh: line 1: svn: command not found
What am I doing wrong?
I''m using a MacBook pro with OSX10.4 and what I think is a standard
version of Ruby 1.8.4 and Rails 1.1
---John
--
Posted via http://www.ruby-forum.com/.
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"
2007 Apr 26
2
looking for a worker that''s gone
In my app, I store the job key when a worker is fired off and then
check back in periodically to see how its doing. The workers delete
themselves when they''re done. I would expect when I try to get a
worker that has been deleted, I would get nil or a proper exception,
but instead I get:
>> MiddleMan.worker(''foobar'')
NoMethodError: undefined method
2007 May 26
0
New worker not being created
I figured out that in the backgroundrb.yml, I had the old setting of making
the database RAILS_ENV. It wasn''t a valid variable in backgroundrb 0.2.1,
and it wasn''t reporting an error, so I had no idea. Once I changed it to
''development'' or ''production'', it started working.
I found that if a worker has an error, it usually logs the error
2008 Mar 19
2
nil-error
Hi all,
I''ve got the error below in my backgroundrb_debug.log. I''ve tried to
reproduce the error in the development environment, but the only way I
can get the same thing is by calling ask_work with a bogus worker
name. Calling it with the production code causes no error.
Here''s an example of what the code calls:
MiddleMan.ask_work(:worker => :agronomy_worker,
2006 Dec 03
0
worker is not executed
Hey,
I''ve got a problem where my worker is not being properly executed....
it used to work in an earlier version of brb, but i realized my
vendor/plugins was out of whack, upgraded to the newer schedule-
oriented release (0.2.1). I can start brb, and run the new_worker
middleman, but ntohing happens.
When putting brb in ''run'' mode, i see this:
undefined method
2007 Jun 20
2
send objet between 2 workers
Hi,
I''m using backgroundrb but I have 2 problems with it.
First is when I launch a thread Toto from the do_work method. Toto can''t
access to a class variable defined before... (undefined method `+'' for
nil:NilClass)
I suspect that thread is launched when backgroundrb start but the worker not
..
My code is :
class MonWorker < BackgrounDRb::Worker::RailsBase
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
2008 Jan 09
0
BackgrounDRb 1.0.1 release available now
Hi Folks,
I am glad to announce a 1.0.1 release of BackgrounDRb library. It has
numerous fixes and some nice feature updates, so please upgrade.
Code:
http://svn.devjavu.com/backgroundrb/tags/release-1.0.1/
Updates and Fixes:
* Fixed issue with Mysql Lost connections
* Message debugging can be disabled now with ''debug_log'' option in
configuration file( :debug_log: false)
2006 Sep 15
2
unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb
i ran rake backgroundrb:setup and modified the default
config/backgroundrb.yml file as:
---
port: "22223"
timer_sleep: 60
load_rails: true
environment: production
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
and my database.yml
production:
adapter: mysql
database: chip2_production
username: xxxxx
password:
2006 Sep 24
5
Can''t Connect to BackgroundRB
I''m having trouble getting backgroundrb up and running in a
production environment.
Here''s my backgroundrb.yml:
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: production
host: XXX.XX.XXX.50
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1 XXX.XX.XXX.51
order: deny,allow
I start BackgroundRB from XXX.XX.XXX.50 with