README.md in backburner-1.5.0 vs README.md in backburner-1.6.0
- old
+ new
@@ -1,8 +1,8 @@
# Backburner [](https://travis-ci.org/nesquena/backburner)
-Backburner is a [beanstalkd](http://kr.github.com/beanstalkd/)-powered job queue that can handle a very high volume of jobs.
+Backburner is a [beanstalkd](https://beanstalkd.github.io/)-powered job queue that can handle a very high volume of jobs.
You create background jobs and place them on multiple work queues to be processed later.
Processing background jobs reliably has never been easier than with beanstalkd and Backburner. This gem works with any ruby-based
web framework, but is especially suited for use with [Sinatra](http://sinatrarb.com), [Padrino](http://padrinorb.com) and Rails.
@@ -63,11 +63,11 @@
Keep in mind that these features are supported out of the box with beanstalk and require no special code within this gem to support.
In the end, **beanstalk is the ideal job queue** while also being ridiculously easy to install and setup.
## Installation
-First, you probably want to [install beanstalkd](http://kr.github.com/beanstalkd/download.html), which powers the job queues.
+First, you probably want to [install beanstalkd](https://beanstalkd.github.io/download.html), which powers the job queues.
Depending on your platform, this should be as simple as (for Ubuntu):
$ sudo apt-get install beanstalkd
Add this line to your application's Gemfile:
@@ -161,12 +161,27 @@
# optional, defaults to default_priority
def self.queue_priority
1000 # most urgent priority is 0
end
- # optional, defaults to respond_timeout
+ # optional, defaults to respond_timeout in config
def self.queue_respond_timeout
300 # number of seconds before job times out, 0 to avoid timeout. NB: A timeout of 1 second will likely lead to race conditions between Backburner and beanstalkd and should be avoided
+ end
+
+ # optional, defaults to retry_delay_proc in config
+ def self.queue_retry_delay_proc
+ lambda { |min_retry_delay, num_retries| min_retry_delay + (num_retries ** 5) }
+ end
+
+ # optional, defaults to retry_delay in config
+ def self.queue_retry_delay
+ 5
+ end
+
+ # optional, defaults to max_job_retries in config
+ def self.queue_max_job_retries
+ 5
end
end
```
You can include the optional `Backburner::Queue` module so you can easily specify queue settings for this job: