Displaying 20 results from an estimated 5000 matches similar to: "changing workers needs restart?"
2006 Aug 01
4
Creating workers from workers?
Since MiddleMan is an uninitialized constant in a worker how do you
create new workers inside a worker?
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
O: 800-341-6826
M: 817-229-4258
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/75a77fa6/attachment-0001.html
2007 Oct 25
3
Mocking Workers in Backgroundrb
Hi
Has anyone mocked a call like the following for backgroundrb?
MiddleMan.new_worker(:class => :admin_email_worker, :args => params
[:email])
I cannot seem to find the correct manner to do it.
Would have liked to be able to do MiddleMan.should_receive
(:new_worker).with(:class => :admin_email_worker, :args => {"body" =>
"my message"})
Cheers
Shane
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 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 Aug 08
3
Cannot start workers in production mode
I have a job that I am starting from a Rails controller in production mode
using MiddleMan:
MiddleMan.new_worker(:class => :import_ccg_category_worker, :args => {
:category_id => @category.id, :remote_category_id =>
params[:remote_category_id], :description => "Importing CCG products for #{@
category.name}" })
Both of the category ID variables are just basic integers. I
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
2008 Mar 20
2
can''t call any methods on workers
Hi,
I''m a long time backgroundrb user, still stuck using the very ancient
original version from Ezra (not even Ezra''s 2.0 version, I''m using the
one that didn''t really have a version number). The 2.0 version did
very little but crash for me. Anyway I finally got some time set
aside to try out this new version you all have been developing.
2006 May 11
2
pages in /public cant find CSS
Hi everyone,
I have a rails project that I''ve been serving via WebBrick at work,
and its been working fine (low traffic). For the last few days I''ve
been trying to deploy it under Apache which already serves our groups
static and PHP pages. I have the dynamic rails part working now, but
am having problems with stylesheet references in static pages. My URL
using WebBrick was (and
2005 Dec 17
1
webbrick and logger output
Hi,
When I do:
logger.info "hello?"
I would expect it to output something from the webbrick output but it doesn''t
seem to. Am I doing something wrong? or is there another way of outputting
on the webbrick output?
Thanks,
-- Colin
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
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my
testing with webbrick and it refuses to display the cached page for a
particular action. I''ve modified my paginator helper to put the page
parameter in the url so that the paginated page can be used with
caching. This works perfectly when the page parameter is in the url (ie
browse/2006/2 or
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
Hi there,
I''ve been digging around trying to find some information (mostly examples)
on how one would handle a progress bar upload using BackgrounDRb and File
Column. I did read http://backgroundrb.rubyforge.org/ and Ezra''s blog of
course, but I still have a few questions.
I made a simple upload form (as a test) that is submitted to the
"upload_song" action.
def
2005 Mar 08
3
Configuring WEBBrick for Port 80
I''ve looked everywhere [except the right place], but I can''t find where
to change WEBbrick from listening to port 3000 to port 80.
Can anyone point me in the right direction.
Thanks
Neville
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
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 Jan 10
8
Worker suicide
I have a worker which wants to delete itself after it finishes its
work- how can it do that?
Best Regards,
Danny Burkes
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation
on what this method returns (1.0.1 version).
Orion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2008 May 04
12
best approach to managing workers and getting status
Hi,
I am using backgroundrb to process audio files from a rails
controller. Currently a new worker gets created every time the method
is called on the worker, using this code:
@job_key = MiddleMan.new_worker(:worker
=> :audio_file_worker, :job_key => Time.now.to_i)
MiddleMan.worker(:audio_file_worker,
@job_key).make_new_audio_file(params[:release_id])
I need to create the new
2005 Mar 03
5
Whats ''favicon.ico''
I''m seeing the following in the WEBbrick console output after every GET
192.168.0.108 - - [03/Mar/2005:15:35:19 AUS Eastern Daylight Time] "GET
/favicon.ico HTTP/1.1" 200 60
- -> /favicon.ico
What does /favicon.ico (which doesnt seem to exist in my source) do for
Rails?
_______________________________________________
Rails mailing list
2006 Jul 29
6
why is webrick running in development mode?
Hi,
I changed my environmnet.rb to say PRODUCTION mode, however when I start
up a server "ruby scripts/server"
a) it runs in development mode (via the logs) - any ideas why?
b) why does webbrick run - I thought by default now it was supposed to
be lightty
Tks
--
Posted via http://www.ruby-forum.com/.
2006 Oct 23
8
can a worker commit suicide?
Can a worker kill themselves when they''re ''done''? Or do I have to do that either from the controller or the worker manager?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061023/11dd429c/attachment.html