similar to: [PATCH-SUGGESTION] autostarting workers

Displaying 20 results from an estimated 3000 matches similar to: "[PATCH-SUGGESTION] autostarting workers"

2006 Aug 23
5
Singleton-like Worker
Hello there, I need a Worker Class to be Singleton-like, that means there must be at maximum one Instance at a time. When a new Request is made to create another worker of this type, it should return and wait for the other instance to be destroyed. what i need to do: i have a worker who needs to do sth with java and openoffice, and it seems when i have more tha one worker simultaneously,
2006 Jul 20
0
delete workers after use
Hello folks, does backgroundrb delete workers who exited do_work()? i experienced it doesnt (and that freaked me because i didnt know that for several hours). is there a way to let the middleman or so delete workers who did their job imediately after they''re done? if not, i coud think of that as a nice improvement. greetz -- Michael Siebert <info at siebert-wd.de>
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 Jul 24
1
require file from /lib in a worker
Hello, i need to require a file located in /lib from a worker class, but when i try to start the backgroundrb server, i get something like d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- ./lib/office_thumnail_generator.rb (MissingSourceFile) i tried it with and without lib, with RAILS_ROOT, nothing worked, altough the paths look good
2006 Aug 06
1
ActiveRecord: determine if attribute has changed since save
Hello there, i need to determine whether an attribute of my model has changed since the last time it was saved. how can i do this? greets -- Michael Siebert <info@siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 05
1
[PATCH] --detach on win32
Hello there! I made a little patch for scripts/backgroundrb/start to make detach work on win32! It needs win32-process to work (it''s a lib from the Win32 Utils project on rubyforge: http://rubyforge.org/projects/win32utils/). To install it, just issue a "gem install win32-process --include-dependencies". If the script detects the :detach option (and a win32 platform), it tries
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 Aug 12
0
Permission denied [solved]
many thanks Michael 2006/8/10, Michael Siebert <info@siebert-wd.de>: > > chmod -r a+rwx tmp > should work > > > 2006/8/10, Roberto Felloni <roberto.felloni@gmail.com>: > > > Hi to all. > I''m a newbye, and this is my first contact with list. > > I have installed ruby and rails. > My ruby local home page works, but development.log tell me
2006 Aug 07
1
:load_rails
if CONFIG[''load_rails''] ActiveRecord::Base.allow_concurrency = true ActiveRecord::Base.establish_connection(YAML.load(ERB.new(IO.read ("#{RAILS_ROOT}/#{CONFIG[''database_yml'']}")).result)[CONFIG[''environment'']]) end if i read the code right, this option doesnt really load rails. wouldnt it be better (for those who rely on the
2006 Jul 17
0
Help wanted for Browsergame
Hello there, to make it short: i''m writing a browsergame called "stellar legends". it is a game about the far future in space with rpg elements and other nice stuff. and its done in rails. since im all alone in developing that game, i need help, because i want it to be playable before 2020 :) the thing is: until now, it is in german, so the best would be developers who are
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 Aug 10
1
IMPORTANT: Rails update 1.1.6
for those who didn''t read it somewhere else: the bug being adresseb by 1.1.5was not completely fixed, so now theres another security update: http://feeds.feedburner.com/~r/RidingRails/~3/10954980/rails-1-1-6-backports-and-full-disclosure anybody using engines, dont update since this update will break the plugin, more info for fixing the bug in this case also in the blog. -- Michael
2006 Aug 14
1
Testing CRUD/Rest Controllers
I have a few simple controllers doing plain, simple crud in a standard way. now it''s not very DRY to write a funtcional test for each controller, since they are all doing the same (apart from a few variable names, but that could be easily inflected or so). is there a way to do this? e.g. does inheritance work with tests, so i define a base test first, inherit my other tests and add a few
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
2006 Aug 07
0
reply-to email header
why does the mail server not set the reply-to header? gmail ignores the list-* stuff and when i click reply it replies to whoever wrote the mail... that ... (dontwannasaythatword) is it a rubyforge thing or where do i have to complain? greets -- Michael Siebert <info at siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part --------------
2006 Jul 17
1
acts_as_tree and :include
hello there, i have a model that uses acts_as_tree: >class GbEntry < ActiveRecord::Base > acts_as_tree :order => ''created_at DESC'' >end and i want it to paginate, including all children to avoid unnecessary db queries: > @gb_entry_pages, @gb_entries = > paginate :gb_entries, :per_page => 15, :order => ''created_at DESC'',
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like ActionView cant find my template. same code works as a rake task. here my worker: class StatusMailWorker < BackgrounDRb::Rails repeat 1.minutes # <-- hehe! def do_work(args) [...blah...] NotificationMailer.create_daily_report(users, rep, items) end end end its throwing the following error: No
2006 Dec 13
4
Unintended thread forked in autostart
Hello all, I''ve got the problem about the following simple application using autostart and repeat_every. A thread(?) is forked for processing task at first, but at sencond time two threads seem to be forked. My simple application code is... - In worker class class FooWorker < BackgrounDRb:Rails repeat_every 2.minutes first_run Time.now def do_work puts Time.now.to_s +
2011 Jan 04
1
autostarting storage pool
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone, How do I make storage pool auto start? I have: virsh # pool-list Name State Autostart - ----------------------------------------- default active yes virtimages active no I don't see anything in pool's xml that could suit this purpose: virsh # pool-dumpxml virtimages
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