README.md in eventboss-1.1.0 vs README.md in eventboss-1.1.1
- old
+ new
@@ -100,27 +100,32 @@
AWS_SNS_ENDPOINT=http://localhost:4575 # when using with localstack
AWS_SQS_ENDPOINT=http://localhost:4576 # when using with localstack
```
-### Logging and error handling
-To have more verbose logging, set `log_level` in configuration (default is `info`).
+Be aware that `eventbus:deadletter:reload` rake task won't load your configuration if you are not using ENVs
+ in non Rails app, although to make it work you can extend your `Rakefile` with:
-Logger is used as default error handler. There is Airbrake handler available, to use it ensure you have `airbrake` or `airbrake-ruby` gem and add it to error handlers stack:
-
```ruby
-Eventboss.configure do |config|
- config.error_handlers << Eventboss::ErrorHandlers::Airbrake.new
+load File.join(Gem::Specification.find_by_name('eventboss').gem_dir, 'lib', 'tasks', 'eventboss.rake')
+
+task :environment do
+ # Load your environment
+ # Example:
+ # require_relative 'config/application'
end
+
+task 'eventboss:deadletter:reload': :environment
```
-### Polling strategy
+### Logging and error handling
+To have more verbose logging, set `log_level` in configuration (default is `info`).
-Default is `Eventboss::Polling::Basic`. See `eventboss/polling/*` for other options. The configuration should be a `lambda` like so:
+Logger is used as default error handler. There is Airbrake handler available, to use it ensure you have `airbrake` or `airbrake-ruby` gem and add it to error handlers stack:
```ruby
Eventboss.configure do |config|
- config.polling_strategy = lambda { |queues| Eventboss::Polling::TimedRoundRobin.new(queues) }
+ config.error_handlers << Eventboss::ErrorHandlers::Airbrake.new
end
```
## Topics & Queues naming convention