README.md in backburner-0.0.2 vs README.md in backburner-0.0.3
- old
+ new
@@ -103,11 +103,12 @@
Here's an example:
```ruby
class NewsletterJob
include Backburner::Queue
- queue "newsletter"
+ queue "newsletter" # defaults to 'newsletter-job'
+ queue_priority 1000 # most urgent priority is 0
def self.perform(email, body)
NewsletterMailer.deliver_text_to_email(email, body)
end
end
@@ -130,9 +131,11 @@
includes `Backburner::Performable`. Async enqueuing works for both instance and class methods on any _performable_ object.
```ruby
class User
include Backburner::Performable
+ queue "newsletter" # defaults to 'newsletter-job'
+ queue_priority 1000 # most urgent priority is 0
def activate(device_id)
@device = Device.find(device_id)
# ...
end
\ No newline at end of file