Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

IFTTT/delayed_job_shim_for_resque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DelayedJobShimForResque

Shims Delayed Job's delay and handle_asynchronously methods into Resque

Installation

Add this line to your application's Gemfile:

gem 'delayed_job_shim_for_resque'

And then execute:

$ bundle

Or install it yourself as:

$ gem install delayed_job_shim_for_resque

Usage

At this point, this should be used with caution. It monkey-patches over Delayed Job so that you can migrate to Resque.

For now this supports:

.delay()
.delay(run_at: <TIME>)
::handle_asynchronously

All three options support passing in a :to => parameter like:

.delay(to: :low_priority)
.delay(run_at, 60.seconds.from_now, to: :low_priority)
::handle_asynchronously :send_emails, :to => :low_priority

Contributing

  1. Fork it ( https://github.com/IFTTT/delayed_job_shim_for_resque/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages