A Resque plugin that sends desktop notification if a job fails.
How to Use
Install
gem "resque-notify"
Require
require 'resque-notify/server'
Poll
- Open the Resque web view
- Make sure you're on the overview page
- Click "Live Poll"
- Wait for failed jobs
Q&A
- Why am I not being notified?
- Probably because you don't have the Overview page open on the Resque web view, or you haven't clicked "Live Poll" yet
- How does this work?
- Resque Notify adds a second view directory to the Sinatra app that Resque uses to create a web view. This directory contains a copy of layout.erb. The only difference between this layout file and the default one is that it includes the notify script. This plugin also overrides the Resque::Server#show method so that the default layout is the layout with the notify script.