Displaying 20 results from an estimated 10000 matches similar to: "listeners and requests"
2006 Jun 07
1
Using DRb within Rails
I want to use DRb within my Rails app. Right now I''ve got a very basic class:
class PaymentGateway
cattr_accessor :ssl_config, :host, :port
def self.gateway
@@gateway ||= new
end
def process(amount, card, type = :auth)
@biller.process(amount, card, type)
end
def set_card(user_id, number)
@biller.set_card(user_id, number)
end
protected
def initialize
2007 Apr 09
1
Drb Connection error on multiple dispatch.fcgi ''s
Hi All,
I''m using Backgroundrb as a general purpose long-running-task back-end
(upload processing, email sending, etc), and it''s been a great solution.
However I''ve recently run into some some intermittent connection issues
that have me baffled. I''m running on apache2/fcgid and the problem
occurs in both devlopment and production mode. The problem seems to
2006 Nov 01
1
strange issue with backgroundrb behind apache/lighttpd
I''m getting strange data back from my worker whenever I run our rails
app with more than one dispatcher under lighttpd.
just to give some info on what the app does:
user submits data to rails app. rails app hands off data to worker,
which goes and does it''s thing, storing results in an array of
response objects (the array is an attribute of the worker). the
response object
2006 May 15
10
BackgrounDRb background task runner and Application Wide Context Store
Friends-
I''m happy to annouce the first alpa release of BackgrounDRb. This is
a small framework for managing long running background tasks that
allows for ajax progress bars and more. It also serves as an
Application wide cache and context store for when you need something
like sessions but shared between users and multiple backend processes
like fcgi''s or mongrels.
2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
I''ve run into a problem on one of my development machines. I''m trying to
run multiple rails apps on one dev machine that runs Windows. Problem is
that is seems that I can only run one scgi_service at a time, meaning
that only one of my apps will function at a time. Anyone know how I can
get around this, other than getting a *nix box (which I should have
soon, hopefully) ?
2006 Apr 08
3
[Tip] Application Wide Context Howto
Friends-
I see more and more folks wanting an application wide context object
that will work regardless of server software(webrick,mongrel, fcgi''s,
scgi''s) This can be a very useful technique if done correctly. Here
is a little info that I have gleaned on a great way to do this type
of thing.
-----Easy AppServer----------------
An easy way to get yourself an
2006 Apr 04
4
Threads vs. Processes and Rails
Hey all,
I need to launce a rather lengthy process from a small Rails application.
It''s the sort of thing (sending out an email newsletter) that would need to
be launched from a browser window, but the browser doesn''t need to stick
around to see it through.
I played around with Thread.new, but I think, based on limited testing, that
the threads need to complete before the view
2006 Jun 15
12
Multithreading and DB access in Rails
I just tried writing some controllers, etc. that would allow me to start
and monitor background tasks running in new (Ruby) threads, with the
idea that I''d eventually manage long-running indexing processes that
way. I can kick off such threads OK (by using Thread.new in a routine
called by a controller), but it seems like Rails gets huffy if those
background tasks and the ordinary
2006 Jul 25
1
Production deployment?
Hi all,
BackgrounDrb was exactly what I needed for a project I''m working on at
work. Everyone''s really impressed, and now it''s time to put the
system into production.
My question is, how do I avoid having to manually run the startup and
shutdown scripts (or the rake tasks) for backgroundrb?
I tried putting a system "rake backgroundrb:start" in my
2007 Apr 04
6
Exception when doing DRb remote calls from a BackgrounDRb worker
Hello,
I am trying to make DRb calls to a external server from a backgrounDRb
worker, but I''m getting always the next exception when I make the remote
call.
> ERROR:
> drbunix:///tmp/backgroundrb.11175/experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928422051
> - #<Errno::ENOENT: No such file or directory -
>
2008 Jan 14
3
problem with backgroundrb
hi, i am using drb and it is working fine on my local pc on windows..
and after uploading the code to the server it was working for
sometime but now it gives me error every time i invoke the process..
error---
uninitialized constant EmailWorker::Notifier - (NameError)
/usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:477:in `const_missing''
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
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 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
2006 Oct 27
8
Error after moving to production server
so i have an after_create method on my track model that kicks off a
background process that converts an mp3 to a swf.
this is working fine locally on my machine, but upon moving it to my
production server, i am getting the following error. I''ve only been
using backgroundRB for like 48 hours, so i''m not really sure what
this means or where to go. any ideas?
2007 Nov 30
1
backgroundrb not cleaning up tmp files?
I just had an interesting issue on a production system that has been
running nicely for about a year. There were approximately 10,000
backgroundrb temp files in the /tmp directory. It looks like
backgroundrb wasn''t cleaning them up.
I noticed it with the following error:
DRb::DRbConnError: drbunix:///tmp/backgroundrb.20015/
backgroundrb_logger_0_0.101544829808665 -
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)
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
2007 Feb 20
1
error message for record not found ?
I''m using backgroundrb for session management and deletion of visitor-entered information when a session is abandoned. The visitor can either click a button to end their session and remove their data, or backgroundrb will do it for them after 5 minutes of inactivity.
Everything''s working fine, I think. If the visitor explicitly logs out, then when the worker checks for their
2007 Jan 22
7
Yet Another Problem with BackgroundRB
Hi!
My cron-based worker is being indeed invoked by backgroundRB at
correct times. But... After several runs it can no longer find DB
columns! The same query, which was running OK an hour ago starts to
throw MySQL error about unkown column in where clause. If I restart
backgroundrb it works for some time but stops working after several
invocations.
Has anyone epxerienced the similar beahviour?