New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

resque-failed-job-mailer-2

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resque-failed-job-mailer-2

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

Overview

Send email with predefined template when resque worker die of any reason.

Folk from https://github.com/anandagrawal84/resque_failed_job_mailer and customizable.

Making it general and seperate from anandagrawal84/resque_failed_job_mailer due to inactive repo.

Installation

gem install resque-failed-job-mailer-2

Or add to Gemfile:

gem 'resque-failed-job-mailer-2'

Usage

All you need to do is configure ActionMailer for smtp details. Add following configuration file resque_failed_job_mailer.rb in config/initializer folder

Resque::Failure::Notifier.configure do |config|
  config.from = 'dummy@dummy.com' # from address
  config.to = 'dummy@dummy.com' # to address
  config.include_payload = true # disabled by default for security
  config.include_exception = true # disabled by default for security
  config.tags = ["ProjectX","Wolverine","Resque"] # [ProjectX][Wolverine][Resque] tag displayed in email summary
end

as soon as resque job fail it would send out an email to the configured email address.

Configuration

If you want to use your own email mechanism then add following configuration

Resque::Failure::Notifier.configure do |config|
  config.mailer = ActionMailerClass
  config.mail = ActionMailerMailMethod
  config.from = 'dummy@dummy.com' # from address
  config.to = 'dummy@dummy.com' # to address
end

config.mailer is any class that extends ActionMailer::Base

config.mail is mail in class given above in config.mailer

FAQs

Package last updated on 19 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc