librelist archives

« back to archive

Failed Queue - Missing Failures

Failed Queue - Missing Failures

From:
David John
Date:
2010-05-15 @ 15:28
Greetings all, 

I'm dealing with a rather odd issue with my Resque implementation on my 
production server, the failed queue does not seem to be getting populated 
with failures.   The strange part is that when I view the stats tab I do 
see the failures value being incremented accordingly (as well as the 
exceptions being logged in Hoptoad).

Oddly enough this is not an issue in my local development environment.

I've done some digging around but I've not found anyone reporting similar 
issues so I'm assuming I must have botched something in my setup.   Being 
extremely new to Redis/Resque I thought I'd run this issue by the list in 
the hopes that someone has either experienced this in the past, or could 
point me in the right direction.

Cheers,
David 

Re: Failed Queue - Missing Failures

From:
David John
Date:
2010-05-15 @ 15:38
Well,

Of course as soon as I ask this question I come to the realization the 
because I'm sending my exceptions to Hoptoad on production and not in 
development - that must be the reason the Failed queue isn't getting 
populated.. *sigh*  So let me shift the point of my question:  Is it 
possible to both dispatch the exception to Hoptoad as well as push it into
the Failed queue? 

Cheers,
David

On 2010-05-15, at 11:28 AM, David John wrote:

> Greetings all, 
> 
> I'm dealing with a rather odd issue with my Resque implementation on my 
production server, the failed queue does not seem to be getting populated 
with failures.   The strange part is that when I view the stats tab I do 
see the failures value being incremented accordingly (as well as the 
exceptions being logged in Hoptoad).
> 
> Oddly enough this is not an issue in my local development environment.
> 
> I've done some digging around but I've not found anyone reporting 
similar issues so I'm assuming I must have botched something in my setup.
Being extremely new to Redis/Resque I thought I'd run this issue by the 
list in the hopes that someone has either experienced this in the past, or
could point me in the right direction.
> 
> Cheers,
> David

Re: [resque] Re: Failed Queue - Missing Failures

From:
Luke Antins
Date:
2010-05-16 @ 01:39
David John wrote:
> Well,
>
> Of course as soon as I ask this question I come to the realization the 
because I'm sending my exceptions to Hoptoad on production and not in 
development - that must be the reason the Failed queue isn't getting 
populated.. *sigh*  So let me shift the point of my question:  Is it 
possible to both dispatch the exception to Hoptoad as well as push it into
the Failed queue?
>
> Cheers,
> David

Hey David,

You can use Resque::Failure::Multiple like this:

Resque::Failure::Multiple.configure do |config|
   config.classes = []
   config.classes << Resque::Failure::Redis
   config.classes << Resque::Failure::Hoptoad.configure do |hoptoad|
     hoptoad.api_key = 'meow'
     hoptoad.secure = true
   end
end

-- 
Luke Antins
http://lividpenguin.com

Re: [resque] Re: Failed Queue - Missing Failures

From:
David John
Date:
2010-05-16 @ 13:30
Thanks Luke.
On 2010-05-15, at 9:39 PM, Luke Antins wrote:

> David John wrote:
>> Well,
>> 
>> Of course as soon as I ask this question I come to the realization the 
because I'm sending my exceptions to Hoptoad on production and not in 
development - that must be the reason the Failed queue isn't getting 
populated.. *sigh*  So let me shift the point of my question:  Is it 
possible to both dispatch the exception to Hoptoad as well as push it into
the Failed queue?
>> 
>> Cheers,
>> David
> 
> Hey David,
> 
> You can use Resque::Failure::Multiple like this:
> 
> Resque::Failure::Multiple.configure do |config|
>   config.classes = []
>   config.classes << Resque::Failure::Redis
>   config.classes << Resque::Failure::Hoptoad.configure do |hoptoad|
>     hoptoad.api_key = 'meow'
>     hoptoad.secure = true
>   end
> end
> 
> -- 
> Luke Antins
> http://lividpenguin.com