Skip to content

Declaring a Default Queue #40

@rubendinho

Description

@rubendinho

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions