Displaying 20 results from an estimated 28 matches for "start_working".
2008 Jan 22
9
Cannot connect when spawning new workers on demand
Hi!
I''m using the latest&greatest backgroundrb with rails 2.0.2 on ubuntu
dapper.
I''ve made an app that lets you run a query on several servers at once,
which are selected at runtime. Therefore, for each server that is
selected, I spawn a new worker and assign its work.
After everything is completed, the workers are deleted.
I often get this error:
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
2008 Jan 29
4
Setting up release-1.0.1
Hello,
I am unable to get the backgroundrb server to run.
Initially I got:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
BackgrounDRb::MasterProxy (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
2008 Jun 06
1
Unexpected NameError when invoking task on worker
Hi, I''m brand new to BackgrounDRb and trying to figure out the setup.
I cloned the git repository today as listed on the BackgrounDRb website.
Starting out with a very basic worker, but BackgroundDRb is crashing
on a NameError. Any help to resolve this issue would be greatly
appreciated! Thank you in advance!!
I am also attaching a text file with the output below since it might
be
2008 Dec 26
4
''stack level too deep'' error
What might be causing this error? I see it once in 2-3 days and it goes away
when I restart backgroundrb. Quoted below is
my backgroundrb_server_11007.log file. Can I do anything to avoid this?
Thanks,
Raghu
==================================================================================
/usr/lib/ruby/1.8/monitor.rb:224:in `mon_exit'': stack level too deep
(SystemStackError)
from
2008 Apr 02
2
scheduling worker methods in rails
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i''m trying desperately to schedule some worker methods within rails 2.0.2. The
problem is, both methods don''t even get called by BackgrounDRb.
my background.yml:
> ---
> :backgroundrb:
> :port: 11006
> :ip: 0.0.0.0
> ---
> :schedules:
> :server_worker:
> :update:
> :trigger_args: 1 *
2007 Dec 06
10
Feedback on RC2
I tried to upgrade my existing application to RC2 last night. Like many, I
use this mostly for running scheduled tasks. For the moment, I''ve abandoned
the effort, but am looking forward to being able to use this. Feedback
below:
First, the reason I was looking forward to this upgrade was to use the
threaded scheduler. I have an application with long-running tasks. I found
that
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error:
MySQL server has gone away" error..
It comes from:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''.
I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql
(2.7) gem
2006 Jul 24
0
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...ef done
MiddleMan.delete_worker(session[:job_key])
redirect_to :action => ''edit_songs''
end
Just for clarity sake, here''s my upload_worker class:
class UploadWorker < BackgrounDRb::Rails
attr_reader :progress
def do_work(args)
@progress = 0
start_working
end
def start_working
Thread.new do
while @progress < 100
sleep rand / 2
a = [1,3,5,7]
@progress += a[rand(a.length-1)]
if @progress > 100
@progress = 100
end
end
end
end
def progress
put...
2009 Jan 06
1
ask_status/register_status deprecated???
Hi,
I''ve been using bdrb for a while and just recently found the need to use the
ask_status/register_status functionality of my worker.
This is the error I get whenever the register_status method is encountered:
...lib/workers/session_worker.rb:10:in `create'': undefined method
`register_status'' for #<SessionWorker:0xb6e7d52c> (NoMethodError)
from
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
I get this error periodically in backgroundrb.log, but only on my
production box (the one running ruby 1.8.5) - my dev box doesn''t get
this error. As far as I can tell, everything is working ok, despite
the error (I don''t really know how to determine if the jobs are
getting threaded successfully, but they are running, that I am sure
of).
Here''s the dump:
no
2006 Jun 04
3
Database access for workers
Hi,
nice work on BackgrounDrb! I have a question, though:
What would be the best way to enable database access for a worker,
preferably through ActiveRecord models. Background: I''m trying to
write a worker that periodically gets data from an external source,
writes it to the database and is then displayed by Rails.
Anybody done something like this?
Thanks in advance!
ciao,
2008 Jan 31
2
cron scheduling problem
I''m running a fresh checkout of release 1.0.1 ...
It''s now 11:32 am local time on January 31.
I''ve configured a single worker for a test.
If I use the following schedule in my background.yaml file:
:schedules:
:debugger_worker:
:ping:
:trigger_args: 0 35 11 * * * *
Backgroundrb starts up without error.
If I make the following
2009 Jan 05
1
packet_worker_runner error
Hi,
I still have the following error while loading backgroundrb :
/opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/
packet-0.1.14/lib/packet/packet_master.rb:116:in `exec'': No such file
or directory - packet_worker_runner 14:11:maintenance_worker:64:/home/
antz/declix.com/production/lib/workers (Errno::ENOENT)
from
2006 Jun 15
5
Cannot invoke ActiveRecord subclass accessors in DRb worker
Hi there,
I''m trying to create a worker to do some asynchronous web client work
and update the data model with its results. It seems, however, that
every call I make to an ActiveRecord subclass causes the whole thing
to block. At least I think it''s blocked. Right now I''m just using
debug log output.
Is there a decent way to debug/test workers I can try?
Is there any
2008 May 30
1
Packet error on startup suddenly.
Hello, I''ve been using backgroundrb successfully for months now, but
suddenly I''m getting the error below when trying to start it up. I did
some searching and I see that someone posted about it last month:
http://rubyforge.org/pipermail/backgroundrb-devel/2008-April/001685.html
Anyone have any idea what could have happened? I made no changes to
the code or configs, but I did
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...ef done
MiddleMan.delete_worker(session[:job_key])
redirect_to :action => ''edit_songs''
end
Just for clarity sake, here''s my upload_worker class:
class UploadWorker < BackgrounDRb::Rails
attr_reader :progress
def do_work(args)
@progress = 0
start_working
end
def start_working
Thread.new do
while @progress < 100
sleep rand / 2
a = [1,3,5,7]
@progress += a[rand(a.length-1)]
if @progress > 100
@progress = 100
end
end
end
end
def progress
put...
2006 Apr 04
4
Threads vs. Processes and Rails
Hey all,
I need to launce a rather lengthy process from a small Rails application.
It''s the sort of thing (sending out an email newsletter) that would need to
be launched from a browser window, but the browser doesn''t need to stick
around to see it through.
I played around with Thread.new, but I think, based on limited testing, that
the threads need to complete before the view
2006 Sep 06
0
rescue?
...into a form and it fires off a worker
that then updates that page using AJAX (all of this is working so far).
How would I correctly wrap the worker in a begin..rescue so that it
spits out ''invalid command'' when someone types in something incorrect.
Right now, I have:
def start_working
begin
@result = IO.popen(@cmd)
rescue SystemCallError
@result = "Invalid or Failed Command: " + $!
end
end
but in my view, the @result doesn''t seem to be accessible to the ajax
periodical updater in the same way the @result from the po...
2009 Apr 10
0
Error running server: Exec format error - packet_worker_runner
Hi All, I''ve been developing a rails app using the Bitnami RailsStack (
http://bitnami.org/stack/rubystack) and it has always worked as advertised.
That is until I have tried to get BackgrounDRB up and running. I have
followed the steps given on the plugin''s project page, each seems to work. I
the plugin install works, I can generate workers etc, but when I start the
backgrounDRB