Hi there! I just have discovered this wonderful plugin a few days ago and I uploaded a little test to my Dreamhost account. I simply got a worker that resizes an image that the user uploads. So this morning I launched the BackgrounDRb server on my account with the rake task and began to upload some test images. The server daemon has been executing until a few minutes ago, I suppose because of Dreamhost''s watchdog that killed the process. So my RoR application could be capable of restarting the server if it detects that is down, right? I mean that I think I can code it, but I would like to hear someone''s else experience or if it''s just a crazy idea :-) I know I could put a spinner near the file_field until the image gets resized and forget about the Workers... but I like the idea of the web application doing some work behind the scenes. If anyone cares, I''m coding a flickr-like application for fun and for my sister''s wedding. :-) -- Vicente Reig Rinc?n de Arellano http://www.vicentereig.info/ mvl: 679 980 411 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060826/92afc758/attachment.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28"> <TITLE>RE: [Backgroundrb-devel] Dreamhost issues</TITLE> </HEAD> <BODY> <!-- Converted from text/plain format --> <P><FONT SIZE=2>I use RoR/BackgrounDRb on Dreamhost, and I do just what you''re saying -- if I get an "unable to connect" error from the MiddleMan, I restart the server and retry. After 3 failed retries, I bubble the exception up.<BR> <BR> Ezra -- is there a way to code this (optional, obviously) autostart behavior into the MiddleMan class itself? I can never remember whether the MiddleMan is local and the workers remote, or whether the MiddleMan itself is undumped.<BR> <BR> Michael<BR> <BR> <BR> -----Original Message-----<BR> From: backgroundrb-devel-bounces@rubyforge.org on behalf of Vicente Reig<BR> Sent: Sat 8/26/2006 1:55 PM<BR> To: backgroundrb-devel@rubyforge.org<BR> Subject: [Backgroundrb-devel] Dreamhost issues<BR> <BR> Hi there!<BR> I just have discovered this wonderful plugin a few days ago and I uploaded a<BR> little test to my Dreamhost account. I simply got a worker that resizes an<BR> image that the user uploads.<BR> So this morning I launched the BackgrounDRb server on my account with the<BR> rake task and began to upload some test images. The server daemon has been<BR> executing until a few minutes ago, I suppose because of Dreamhost''s watchdog<BR> that killed the process. So my RoR application could be capable of<BR> restarting the server if it detects that is down, right? I mean that I think<BR> I can code it, but I would like to hear someone''s else experience or if it''s<BR> just a crazy idea :-)<BR> <BR> I know I could put a spinner near the file_field until the image gets<BR> resized and forget about the Workers... but I like the idea of the web<BR> application doing some work behind the scenes.<BR> <BR> If anyone cares, I''m coding a flickr-like application for fun and for my<BR> sister''s wedding. :-)<BR> <BR> --<BR> Vicente Reig Rincón de Arellano<BR> <A HREF="http://www.vicentereig.info/">http://www.vicentereig.info/</A><BR> mvl: 679 980 411<BR> <BR> </FONT> </P> </BODY> </HTML>
Hmm yeah that sucks. Dreamhost is know for killing long running tasks. There is a frao handler someone made for fcgi so that when dreamhost tries to tell your fcgi''s to die, they will just trap the kill signal and continue on running. It is possible to use this technique with bgdrb. I am busy this week setting up engine yard but next week when I get back home I could try to add something to handle this so it doesn''t get killed off. Cheers- -Ezra On Aug 27, 2006, at 5:52 PM, Klein, Michael wrote:> I use RoR/BackgrounDRb on Dreamhost, and I do just what you''re > saying -- if I get an "unable to connect" error from the MiddleMan, > I restart the server and retry. After 3 failed retries, I bubble > the exception up. > > Ezra -- is there a way to code this (optional, obviously) autostart > behavior into the MiddleMan class itself? I can never remember > whether the MiddleMan is local and the workers remote, or whether > the MiddleMan itself is undumped. > > Michael > > > -----Original Message----- > From: backgroundrb-devel-bounces at rubyforge.org on behalf of Vicente > Reig > Sent: Sat 8/26/2006 1:55 PM > To: backgroundrb-devel at rubyforge.org > Subject: [Backgroundrb-devel] Dreamhost issues > > Hi there! > I just have discovered this wonderful plugin a few days ago and I > uploaded a > little test to my Dreamhost account. I simply got a worker that > resizes an > image that the user uploads. > So this morning I launched the BackgrounDRb server on my account > with the > rake task and began to upload some test images. The server daemon > has been > executing until a few minutes ago, I suppose because of Dreamhost''s > watchdog > that killed the process. So my RoR application could be capable of > restarting the server if it detects that is down, right? I mean > that I think > I can code it, but I would like to hear someone''s else experience > or if it''s > just a crazy idea :-) > > I know I could put a spinner near the file_field until the image gets > resized and forget about the Workers... but I like the idea of the web > application doing some work behind the scenes. > > If anyone cares, I''m coding a flickr-like application for fun and > for my > sister''s wedding. :-) > > -- > Vicente Reig Rinc?n de Arellano > http://www.vicentereig.info/ > mvl: 679 980 411 > > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060829/f74063e2/attachment.html