Displaying 20 results from an estimated 7000 matches similar to: "Debugging Workers"
2007 Jun 16
1
BackgrounDRB and Sqlite3 / Autotest / Memory_test_fix Issues
Hello all.
I am using BackgrounDRB with "great happiness and joy", however, I am
running into one problem in that when I am running my tests with
autotest using Sqlite3 3.3.17 I am getting
"ActiveRecord::StatementInvalid" exception inside of the
sqlite_adapter.rb:360 which is checking for an empty structure.
I thought it might be the version of Sqlite, so I upgraded to 3.3.17
2009 May 27
3
Call in progress tones
Hello all,
I've played with background and play sounds apps and googled around
and asked the list before to no avail.
Does anyone know of a way to have tones played during the call
progress stage of the call?
We (especially on some international circuits) get up to 5 seconds of
silence before the phone starts ringing or is busy.
I don't want to force "R" on the Dial app as
2007 Jul 18
10
Rails - Mock going out of scope?
Hello list,
I think I have a rails related RSpec problem with a mock going out of
scope on a recursive call to a model.
The code is at: http://pastie.textmate.org/79821 if you want to see it
highlighted. I have pasted it below as well.
Basically, I have an acts_as_nested_set model called "Node", which
works fine. I have a function which finds the language name of the
node instance.
2008 Nov 17
4
Debugging Asterisk
Hello all,
Two questions:
1) What do people on the list do to debug phone quality issues. Phone
quality seems to be a very subjective thing. But are there metrics that you
can work against? Like maybe generating a tone and measuring the return
quality etc? It looks like all trial and error right now. If that is the
way it is, then fine. But anything more accurate / scientific?
2) Also
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out
TMail
This is for the 3.0 release, and not part of the 2.x tree.
I am the TMail maintainer and I decided this year to write a ruby email
handler, the Mail gem is my solution to this.
Mail takes a very object oriented approach to email. It conforms to RFCs as
closely as practical and parses the 0.5gb Trec and 2.5Gb
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out
TMail
This is for the 3.0 release, and not part of the 2.x tree.
I am the TMail maintainer and I decided this year to write a ruby email
handler, the Mail gem is my solution to this.
Mail takes a very object oriented approach to email. It conforms to RFCs as
closely as practical and parses the 0.5gb Trec and 2.5Gb
2008 Dec 03
8
Indentation Conventions for Ruby and Cucumber
On Thu, Nov 27, 2008 at 4:28 PM, Aslak Helles?y <aslak.hellesoy at gmail.com>wrote:
> When (if) this thread ends, let''s start a discussion about indentation
> conventions!
>
Oh... let the pleasure be mine!... and why wait?
_EVERYONE_ knows that the only way to indent ruby code is 2 plain spaces.
Tabs are known to be the source of all evil and 4 spaces obviously wastes
2007 Jul 24
2
Mocking Resolv::DNS?
Hello Rspecers,
I have a rails project where I am calling Resolv::DNS.open and then
using the block to check a domain name.
The code snippet in question is:
domain = "mytest.com"
Resolv::DNS.open do |dns|
@mx = dns.getresources(domain, Resolv::DNS::Resource::IN::MX)
end
I obviously want to stub this out, especially for speed but can''t
quite work out how.
I
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail.
You may know me better as the maintainer of TMail.
However, TMail has been a bit difficult to get working with Ruby 1.9,
so in the light of that, I sat down over the past few months and wrote
myself an all encompasing mail gem. Mail passes all of its hundreds
of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads
every email in the TMail test suite
2009 Mar 04
1
Question on phone line "pass through"
Hi all,
I have a TDM2400 full of FXS cards and a TDM800 full of FXO cards.
If I have a fax machine on the FXS port dialing out through asterisk
on the TDM800 FXO, should I be expecting any problems?
Or should this just work as expected? (ie, flawlessly with the
asterisk box essentially transparent to the whole operation).
I am doing it this way to allow many faxes and modems to share a dial
2008 Feb 21
1
Using Really Simple History on Rails
Hello all,
I am getting Really Simple History working in rails.
I''ve got this history content up etc, but I am a bit lost on how to
capture the XHR response data from the Rails app to insert into the
history.
My understanding would be to have some way of grabbing the response
data from the Rails app, inserting that into the history with
dhtmlHistory.add(''PageName'',
2007 Nov 12
0
Workers calling Workers
Hello,
We are working on a centralized report generating project, which calls
for data processing on different servers and then centralizes the
reports into a single project. What we would like to do is have a
Monitor BackgrounDRb worker call another BackgrounDRb worker to process
data on a different server, and then have our Monitor Worker collect the
data and then store it according to our
2008 Jun 05
2
xhr :post giving wrong number of arguments on rails 2.1?
Getting a strange error.
In a story I have the following step:
When "I submit a search name" do
xhr :post, ''/searches'', {:search => {:given_name => "bob", :family_name =>
"smith"}}
end
I am getting:
ArgumentError: wrong number of arguments (4 for 3)
stories/searching_story_spec.rb:45 in "I submit a search name"
But I only
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 26
1
autotest loosing RAILS_ROOT Constant?
I am having a weird error that I have not had before... I''m bouncing
it off the list to see if anyone else has had it, or to give me some
pointers about how to find it.
Basically, AUTOTEST will run (RSpec mode), fine, then suddenly, will
complain that RAILS_ROOT is undefined.
Then I stop and restart it, with no code change... no problem.
It happens on different specs where I use
2007 Apr 27
0
Backgroundrb running under cygwin - having issue with Railsbase workers
Hello all,
We''re currently running version .1.x in our environment. We would like to
move to .2.x to take advantage of some of the improvements made running in a
multi-process environment. We deploy to a linux environment but develop
locally in Windows. I''m aware that a number of people have reported the
ability to run .2.x of backgroundrb inside cygwin, and for the most part,
2007 Dec 28
1
Getting wrong route - fairly complete error description
OK, I have a routing problem, that seems to be working in the console,
but not in the app.
I have people that have nested tasks, like so:
-------------------------------
# routes.rb
map.resources :people do |person|
person.resources :phone_notes
person.resources :documents
person.resources :tasks, :member => {:complete => :put}
end
map.resources :tasks, :member => {:complete =>
2008 Apr 03
3
remote workers
Hi,
I am kind of lost on how to configure the backgroundrb workers to run
from a remote host?
Suppose I have my main rails app in 1.2.3.4, and I want my
backgroundrb workers to run from a machine with ip 5.6.7.8, what do I
put
in my backgroundrb.yml file? How will my workers know which database
server to load the models from?
Thanks,
Ram
2007 May 03
1
Reloadable workers? (Rails Testing without DRb restart?)
Hey guys, I just opened up my first installation of BackgrounDRb and
so far I love it. I''ll have to share this plugin at my next Ruby
Brigade meeting!
I have one question though: Is there a way that I can run the
BackgrounDRb server in a "test" mode that will reload my changes
without having to restart every time? (Similar to how mongrel does
this with my
2007 Sep 18
1
best practices for robust workers
Hi folks,
I''ve got some BackgroundRB workers to handle a long running task
(triggered by a user) that work very well on my staging server, and I
just wanted to check to see if anyone had any advice before I put it
into production.
When I start the worker (which performs an import), I write a record
to my database for each import. The record gets updated by the worker
to