Displaying 20 results from an estimated 2000 matches similar to: "Starting / stopping background rb when apache starts/stops"
2007 Jan 19
6
Stopping DRb after using BackgrounDRb::MiddleManDRbObject.init
Hi,
I''m having a problem where connections started through
BackgrounDRb::MiddleManDRbObject.init are not stopped, resulting in an
ever growing established connections between my Mongrels and remote
backgroundrbs
I added DRb.stop_service to my code executed after requests that init
MiddleManDRbObjects but that does not help.
Any ideas?
Thanks,
Robert Bjarnason
2007 Nov 02
10
pre-release version of backgroundrb available now from svn
Hi,
A pre-release version of backgroundrb is available now from svn.
Download it from here:
http://svn.devjavu.com/backgroundrb/branches/version099/
Since this release marks significant migration from existing
practices, i intend to keep trunk untouched for a while.
There are no install scripts, but you should copy "backgroundrb" file
from script directory of plugin to script
2006 Nov 20
4
Production RAILS_ENV / DB Selection
Hey all,
I''m having some issues moving a project that incorporates Backgroundrb onto
a staging server... For some reason (surely of my own doing), my RailsBase
workers are insisting on using trying to access my development DB instead of
my "production" DB.
When I try to load a model object from within a worker, I get the following:
20061120-21:54:28 (26296)
2001 Nov 01
1
Lossy Audio Compression Research
Hello everyone,
I'm a student at the Universtiy of Delaware, and will be soon starting
some research on the effects of lossy audio compression on speech sounds. I
will be preforming test with both mp3 and vorbis.
First of all, if I use the '--ogg' switch to lame, does lame use GPSYCHO
to encode the wave, or some other psychoacoustic model (perhaps one designed for
2008 Mar 25
1
extending bdrb / running multiple servers
Hi,
Thanks for the help getting the new backgroundrb working, things are
working fabulously now.
I have two questions:
1) I have a few basic methods I need available on all my workers in
order to communicate properly with my application... it seems to make
the most sense right now to subclass BackgrounDRb::MetaWorker, or make
a mixin module, because I''m actually extending some
2007 Mar 07
10
MiddleMan.worker blocks?
Hello -
I am observing that calls to MiddleMan.worker return only after the worker
has completed its work. This puzzles me, and I presume that I am doing
something wrong. Can anyone make suggestions?
Snippets from my code are:
class ReportController < SecurityController
...
def create_xml_report(report,start_time)
constraints = get_constraints(report,start_time,false)
2010 Apr 16
0
Spam and that recent 'attack' ...
Here's an intersting thing - in my spam folder today in popped an email
from a Chinese manufacturing company trying to sell me the usual VoIP
stuff - phones, etc. (From com-vox.com FWIW).
However as well as targetting the email address on my web site, they also
targetted a made-up, but plausable, email address at the host that was
attacked last weekend - (systems at drogon.net and systems
2003 May 19
2
How can I Generate the cachedmetrics file?
Hello to everybody,
I have accidentally deleted my cachedmetrics file. I thought that after
I run wine and the file is not present, wine would generate it - but it
didn't :(
Does anybody know how can I generate that file?
Thanx in advance
Stelios
--
http://www.freemail.gr - ?????? ???????? ???????????? ????????????.
2007 May 19
1
Worker cleanup and TTL
Hello. I read in an old announcement by Ezra, relating to the older
version of BackgrounDRb, about workers being able to clean up after
themselves and a TTL feature. I''m not sure if these things are present
in the newer version.
I''ve tried overriding the delete method in my worker but when I call
delete_worker, the method doesn''t appear to be called. Is there a
right
2006 Oct 26
2
shutdown listener
I start up an external process when I start my rails environment. I
currently do this in config/environment.rb by forking a process and
recording it''s process id in log/foo.pid, I''d like to kill that process
when I close mongrel. Is there an API in mongrel for responding to the
shutdown event? Or do I need to listen for the term signal and do my clean
up that way?
Thanks,
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
2006 Dec 06
0
Testing your workers
This has been asked before, never well attended perhaps.
Any thoughts on testing your workers?
Current implementation is broken. An empty test case like this:
require File.dirname(__FILE__) + ''/../test_helper''
require "#{RAILS_ROOT}/lib/workers/market_summary_worker"
require "#{RAILS_ROOT}/vendor/plugins/backgroundrb/lib/backgroundrb.rb"
require
2007 Jul 11
3
Problem with scheduled task mysteriously stopping
Hi there,
I have a scheduled task which I started from Rails, set to run every
5 minutes, it takes probably about 20-30 seconds to execute (it''s
aggregating some feeds). It ran for about 5 hours and then
mysteriously stopped -- the logs show no errors.
This kind of sucks because it''s like a silent failure, has anyone
else had this problem?
--simon
--
2008 Jan 16
6
Backgroundrb 1.0.1: uninitialized constant Packet::ClassHelpers (NameError)
Hi,
just updated backgroundrb to release 1.0.1 and am getting this error when
trying to start backgroundrb.
vendor/plugins/backgroundrb/framework/core.rb:18: uninitialized constant
Packet::ClassHelpers (NameError)
Just updated from r298 where everything was working fine.
If I comment out the offending line then backgroundrb starts but I can''t
connect to it from my app.
Anyone have any
2007 Mar 04
6
Backgroundrb spiking CPU after first run on Mongrel cluster
I''ve been troubleshooting this problem for several hours now and haven''t
been able to figure out what''s wrong. I have two boxes, dev and prod, both
are identical except that prod uses Ruby 1.8.5 and dev uses 1.8.4. Both are
running Slave 1.2.0, Daemons 1.0.5, and Backroundrb 0.2.1.
The behavior I''m seeing is this. When I first start Backgroundrb, this is
what
2006 Nov 07
2
start a worker when bdrb starts
I am sure..again I am missing something, but I am trying to start a
worker, when backgroundrb starts and it doesn''t seem to work.
Here is my config/backgroundrb_schedules.yml file:
feed_worker:
class: feed_worker
job_key: feed_worker_key
worker_method: do_work
trigger_args:
repeat_interval: 20.minutes
I even tried this from Rails controller:
# def start_feed_worker
#
2006 Jul 04
1
ActiveRecord write stops script from responding to SIGTERM
We''ve got a small daemon we run on our servers, which looks something
like this
require File.dirname(__FILE__) + ''/../config/boot''
require File.dirname(__FILE__) + ''/../config/environment''
ActiveRecord::Base.establish_connection
do
m = Message.next_pending
if m
m.do_something
else
sleep 5
end
end
Stuff gets place in this queue
2007 Apr 18
5
[BUG] worker stopping abruptly
I have been facing this damn ugly issue since quite sometime.
So this worker reads RSS feed from Yahoo news and stores it in a DB.
The worker is scheduled to run at every 40 minutes and my
background_schedules.yml looks like this:
feed_worker:
:class: :feed_worker
:job_key: :feed_worker_key
:worker_method: :do_work
:trigger_args:
:start: <%= Time.now + 5 %>
2008 Nov 20
1
Stopping bdrb from another process gets the process killed
Hi, I''ve been having some issues integrating bdrb on a cruisecontrolrb
server
It''s related to the way we stop the bdrb server. The thing is, right now
when we stop the process we are killing the parent of the group of the
process. This is ok if you''re running script/backgroundrb stop directly from
the console, but if I''m running this from another process,
2003 Nov 13
2
Apache leaks sensitive info in PHP phpinfo() calls
Hi,
I wanted to get some opinions on this subject before I submit a PR about
it. I don't know if there are any pitfalls with the 'fix' I suggested
and though it best to run it past people here before submitting. If
there's a better place to post this please let me know (freebsd-ports?).
The send-pr output I was about to send explains everything so I'll just
paste it here: