Displaying 20 results from an estimated 5000 matches similar to: "Singleton-like Worker"
2006 Jul 13
4
Update
Folks-
I just commited another revision of the plugin. Nothing huge in this
update but some extra features. Acl lists are now configurable in the
config file. So you will want to blow away and recreate your config
file again. Thanks to Georg Friedrich for this.
And I applied Gunter Ladwig''s patch for singleton worker classes.
These are workers that only have one instance of
2006 Jul 03
6
Req: Workers as singletons
Hi,
it would be nice to be able to specify workers as singletons. By this
I mean that every call to the new_worker method returns the same
instance of said worker. This can be done transparently either by
adding a new argument to new_worker (something like :singleton =>
true) or adding a new method, like I did in my installation of
BackgrounDrb:
def get_worker_by_class(klass)
2006 Oct 30
11
BackgrounDRb 0.2.0 Release! Complete rewrite.
Hello Folks-
I am really happy to announce the release of BackgrounDRb 0.2.0 .
This is a complete rewrite and re-architecture of this codebase. I
want to
thank skaar for all of his hard work. I put out a call for help with
the new
architecture and skaar stepped up bigtime. I had already written
the new
scheduler and cron compatible syntax and moved to multi process
architecture. But he
2006 Aug 01
2
making backgroundrb cron
Hello,
i need to have some jobs scheduled in the background and executed at
specific times. I wanted to make a worker who does that - and it works a
little bit - but i had an enlightment... why not make bgdrb itself play that
role? i mean, the MiddleMan has already everything needed! a timer thread,
currently used only for deleting old workers and the workers itself. since
im not familiar with
2006 Nov 29
6
Noob needs help installing backgroundrb on Windows XP
Hey Guys,
In the readme for Backgroundrb it says that windows support has been
depcreated for this version, but then it goes on to mention how to use
it in Windows. So I''m not sure if it should be running on windows or
not, so I''ll ask anyway. Also, I''m new to ruby and I''m also new to
server administration, so I apologize if my questions are pretty
2006 Sep 14
1
Status of your worker pool
On Sep 14, 2006, at 10:25 AM, Michael Siebert wrote:
> Hey Ezra,
> how is the status of your worker pool? i need some thing like this
> ASAP and i can''t get David Lemstra''s QueueWorker to work, so: whats
> the status? do you have some "beta" lying around on your hard
> drive? I dont want to spend my time on that if you''re coming up
>
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
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 Mar 04
2
BgDRb blocking in ActiveRecord
Hi Folks,
I''ve got a tiny little problem using MySQL-backed ActiveRecord in my
worker class. Sometimes it just blocks infinitely when I try to
access it. I don''t know whether it is in AR itself or in the SQL
driver. It just stops doing anything, logging nothing, no exceptions
are raised. I don''t know if it matters that I call the worker''s
methods via
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
2006 Jul 25
1
bgdrb hangup
Hi,
i had a little problem a few minutes ago. somehow the backgroundrb process
got mad and consumed all the cpu power available, i think it got an endless
loop. i dont know why, no exceptions were thrown.
could this be an issue of bgdrb or ruby or rails (as i load the rails
environment)
--
Michael Siebert <info at siebert-wd.de>
www.stellar-legends.de - Weltraum-Browsergame im
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 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.
2006 Jul 09
5
where do uncaught exceptions printouts go?
Hi,
I have a worker, which should have thrown an uncaught exception and dumped the stack in the do_work
method, however I saw no dump or indication of any error in any of the logs.
This makes it very hard to debug, where does stdout and or stderr go? How canb I know if it gets
some kind of error? (in this case not being able to find a class).
Thanks
--
Jim Morris, http://blog.wolfman.com
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2006 Aug 24
3
A new QueueWorker class
Hello all,
I''ve come up w/ a worker class that manages queued jobs using a fixed
number of child workers. Well, that''s not quite true -- a new worker is
spawned for each job, but you set the total number that may exist at once.
There are three components:
1) queue_worker.rb: The singleton worker that manages the child workers.
You probably want to auto start this. Make sure you
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many
instances of in parallel.
Couldn''t get pool_size to limit the amount of workers, and I figure
that''s hardly optimal anyway, so would like to have the work queued up
for a single named worker instead, running as soon as possible.
Using MiddleMan.schedule_worker() with :job_key does start off a
2006 Aug 07
2
Autostarting and job keys...
I''ve now got 5 processes auto started. But I when I query the
MiddleMan for their keys (in script/console), it doesn''t find them.
Looking at the start script, it looks like it might be creating a new
MiddleMan object for each autostart
BackgrounDRb::MiddleMan.new.new_worker(:class => entry[''class''],
Even changing it to
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 Oct 17
6
Session access interfers with other model access
Sorry to be such a bother but I''m not getting this.
I have two models: Emrec and Session (I''m using AR for session mgmt.) In my
worker I can access the Emrec model and delete a record, AS LONG AS I don''t
try to access the Session model. With the Session model access commented
out as below, the Emrec record gets deleted. If I uncomment those lines,
the Emrec