Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaring a Default Queue #40

Open
rubendinho opened this issue Jan 17, 2018 · 1 comment
Open

Declaring a Default Queue #40

rubendinho opened this issue Jan 17, 2018 · 1 comment

Comments

@rubendinho
Copy link

rubendinho commented Jan 17, 2018

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.

@Marahin
Copy link
Contributor

Marahin commented May 20, 2019

Hi! Sorry for a huge time without any response here. We're doing our best to de-dust open source projects, but as of writing I must say that we do not meet required throughput to provide resolution for this issue. I'll add Help Wanted label here and if anyone comes up - feel more than welcome to contribute and open a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants