Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
resque-async_deliver
Advanced tools
resque-async_deliver is a simple gem to send emails asynchronously using Resque without having to change much in your existing codebase.
In your Gemfile:
gem 'resque-async_deliver'
Whenever you want to asynchronously send an email, simply change
SomeMailer.some_mail(an_argument, another_argument).deliver
to this
SomeMailer.async_deliver.some_mail(an_argument, another_argument)
This will enqueue a job that will simply run
SomeMailer.some_mail(an_argument, another_argument).deliver
You don't have to change your mailers, even if they take ActiveRecord
objects as arguments. Since all the arguments will be JSON encoded
by Resque before storing them in Redis, ActiveRecord objects will be
serialized as a hash containing the class and the id of the model.
resque-async_deliver will then find
the records and pass them to the
mailer.
The jobs will be added to Resque in the mail
queue.
Tested on ruby 1.8.7 and 1.9.2.
Philipe Fatio
philipe.fatio@gmail.com
@fphilipe
FAQs
Unknown package
We found that resque-async_deliver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.