-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
Description
Is it possible to implement a default queue, similar to ActionMailer or Textris's ownfrom value? I don't use the :textris queue and manually setting a queue on every delivery is quite repetitive.
Something like this:
class NotificationTexter < Textris::Base
default queue: "notifications"
def cool_update(user)
...
end
end
Another nice option would be be able to override the default :textris queue in an optional initializer. For example, this is how Rollbar approaches this issue:
# config/initializers/rollbar.rb
Rollbar.configure do |config|
config.use_sidekiq 'queue' => 'low'
end
This is a fantastic gem overall, but being able to customize some fairly basic defaults (i.e. #29) would make it much cleaner to incorporate into existing Rails apps.