backburner icon indicating copy to clipboard operation
backburner copied to clipboard

More readable queue configuration

Open freysie opened this issue 10 years ago • 0 comments

It would be super cool instead of having to write

  config.default_queues = %w[
    transcoding:5:1000:5
    mailers:1:1000:5
  ]

if I instead could write

  config.default_queues = {
    transcoding: { threads: 5, garbage_limit: 1000, max_retries: 5 },
    mailers: { threads: 1, garbage_limit: 1000, max_retries: 5 }
  }

or something like that.

(Not sure about the naming. All of three options—even the threads one—are really upper limits, aren't they?)

freysie avatar Oct 08 '15 03:10 freysie