lib/backburner/configuration.rb in backburner-0.1.1 vs lib/backburner/configuration.rb in backburner-0.1.2

- old
+ new

@@ -3,17 +3,23 @@ attr_accessor :beanstalk_url # beanstalk url connection attr_accessor :tube_namespace # namespace prefix for every queue attr_accessor :default_priority # default job priority attr_accessor :respond_timeout # default job timeout attr_accessor :on_error # error handler + attr_accessor :max_job_retries # max job retries + attr_accessor :retry_delay # retry delay in seconds attr_accessor :default_queues # default queues + attr_accessor :logger # logger def initialize @beanstalk_url = "beanstalk://localhost" @tube_namespace = "backburner.worker.queue" @default_priority = 65536 @respond_timeout = 120 @on_error = nil + @max_job_retries = 0 + @retry_delay = 5 @default_queues = [] + @logger = nil end end # Configuration end # Backburner \ No newline at end of file