Displaying 20 results from an estimated 1000 matches similar to: "Reloadable workers? (Rails Testing without DRb restart?)"
2006 Nov 20
2
Passing object into results - "can''t convert DRb::DRbUnknown into Hash - (TypeError)"
Hi,
I''m using backgroundrb to get RSS feeds and pass them back to the
controller. I''m using the Ruby RSS library to parse the feed, which returns
an RSS object. After that I pass the object into the results hash, but
that''s when this error occurs. Basically, this is what I have:
rss = RSS::Parser.parse(response.body)
results[:feed] = rss # error!
20061120-15:46:19
2006 Dec 01
2
passing arguments to worker method
Hello all,
i just started using backgroundrb and i really like it a lot so far.
I finally succeeded in setting up version 0.21 and the examples from the
readme run fine.
Now i do not want to create and delete my worker anytime i want it to do
something but call repeatedly a method with arguments.
There is a arg_method defined in the readme so i guess this is a feasible
way to procede.
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 Nov 08
5
New Backgroundrb Speed Issues?
The new backgroundrb seemed to me to be markedly slower than the old
one. So, I ran a "side-by-side" comparison test using a worker that
I had written which parses a CSV file and loads the results into a
database. The results? The latest version appears to take twice as
long to run the same code as the previous version. Has anyone else
experienced speed issues with the new
2007 Feb 18
2
backgroundrb launches concurrent instances of same job
Hi there,
Backgroundrb is working pretty well for me but I have a job that launches
two of the same job, apparently a minute(?) apart from each other. Should
this be happening if I have repeat interval enabled with a job_key? It
seems like it should wait until the job is finished before launching a new
instance.
--Backgroundrb_schedules.yml--
city_updater:
:class: :city_updater_worker
2007 Feb 20
2
rails 1.2.1, locomotive and backgroundrb
Hi
I just tried to move my project to rails 1.2.1 on my locomotive
development setup. It seems that backgroundrb is not willing to start
up anymore. If I switch locomotive back to 1.1.6, everthing is fine.
This is the error I get while attempting to start backgroundrb:
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/
2006 Nov 05
5
backgroundrb preview
Hi Ezra/skaar,
Wow man, the exercise was worth it. The connection closed problem with
socket as i mentioned in my earlier mails...completely disappeared,
and now i can connect only once to the socket and keep reading..till
end of its days.
Literally impossible with older release of backgroundrb.
This could also potentially solve the issues people were having with
ActiveRecord.
As i said
2006 Oct 07
1
Request to open up getConnection to embedded interface
Hello all,
I would like to request that getConnection() and the struct Rconn
declarations be added to the R embedded interface. Here's why.
It's common in CGI scripts for web applications to direct stdin, stdout,
and stderr map to reading from the browser, writing to the browser, and
writing to a web log file respectively; very nice and neat. However,
things get a little hairy once
2007 Feb 07
2
ncluding backgroundrb issue
I have the next including files structure :
- controller fileaA.rb including line (#8): require "fileB"...
- /lib/fileB.rb with main header: load ''backgroundrb/worker.rb''
load ''backgroundrb/
worker_rails.rb''
class FileB <
2007 May 04
1
Setting environment
> Chris T wrote:
> > Not sure this is known behaviour but it seems that if want to set
> the
> > environment to, for example, test, and you want to use Active
> Record you
> > have to both explicitly set the RAILS_ENV and the BackgrounDRb
> environment.
>
> I ran into essentially the same problem (needing to run BRB in the
> test
> environment so
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 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi,
I''m using backgroundrb 0.2.1 in a production environment and for most
parts I''m very happy. We are using it to do some heavy video editing on
the server side and it works great except that under, what seems heavy
load the below problem happens intermittently.
The problem has only happened 5 times out of over 500 runs by our
backgroundrb worker.
This is the code in our
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 Nov 16
2
test unit approach?
I''m just getting back to looking at backgroundrb after a long hiatus
since June. I''m looking at creating some workers but I''m a bit stuck
as to how I should write tests for them. What''s the recommended
approach for unit testing of workers?
The project will ultimately be used by a Rails app but I''m
comfortable developing the worker code as a
2007 May 08
0
[PATCH] Unit Testing Rails Workers - It works!
Hey guys, I''ve spent the last two days getting Unit Testing for Rails
Workers to work. I''ve posted all the details at this ticket:
http://backgroundrb.devjavu.com/projects/backgroundrb/ticket/53
Nate Murray
http://pasadenarb.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Aug 22
1
ANN: Iowa Ruby Brigade
Iowa Ruby Brigade
First Meeting
Thursday, September 20, 2007
6:00 PM - 7:30 PM
DMACC West Campus
5959 Grand Avenue
West Des Moines, IA
Topics:
Organizational Meeting
Getting Started With Ruby
For more information, visit
http://www.iowaruby.org
We''re just getting started, so please let us know how we can best
serve the needs of the Iowa Ruby community.
2006 Dec 15
3
can Timeout::timeout(...) be used in a Worker ?
Hi ,
I was wondering if anyone else has tried to use the Timeout::timeout
method in a backgroundrb Worker and had Timeout raise an exception
after the allotted amount of time .
I ask because i have written a test script to make sure Timeout would
work . I have tested the script by directly feeding it to ruby with :
$ ruby test_script.rb
and piping the script to the rails console:
$
2006 Nov 09
2
Hi everybody! Greetings from sunny Columbus, OH!
Hey everyone, I just wanted to drop onto the list and say hi. My
name is Chad Humphries and I am a partner at a ruby and rails shop in
Columbus, OH called EdgeCase.
Up until two months ago we were doing all of our dev work in
test:unit. I had read about RSpec before and after hearing Jim
Weirich speak at the Columbus Ruby Brigade about similar ideas I
decided to give it a go for a
2007 Apr 28
1
backgroundrb and fastthread
I was just curious if anyone noticed any significant performance
improvements using fastthread (or Ruby 1.8.6) with BackgrounDRb
Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url :
2007 Jan 22
1
MiddleMan behavior
i found some questions and answers on mailing lists but there is still a
problem - when i want to create new worker from within a worker -
::BackgrounDRb::MiddleMan.new_worker(:class => :second_worker, :args =>
{:id=>2, :text=>"slave"}) works
but when i want to get reference to that object:
::BackgrounDRb::MiddleMan.worker(@second)
yields:
NoMethodError: undefined