tasktiger icon indicating copy to clipboard operation
tasktiger copied to clipboard

Refactor queue config settings

Open jkemp101 opened this issue 6 years ago • 0 comments

Right now a queue's configuration is spread across multiple keys in the config. We should move to something like this instead and stop using the separate settings ONLY_QUEUES, BATCH_QUEUES, SINGLE_WORKER_QUEUES/MAX_WORKERS_PER_QUEUE?

QUEUES = {
    'a': {
        max_workers: 5,
        batch: 50
    },
    'b': {}
}

The SINGLE_WORKER_QUEUES setting should be deprecated since MAX_WORKERS_PER_QUEUE=1 is equivalent. Max workers was added in https://github.com/closeio/tasktiger/pull/115.

jkemp101 avatar Jan 09 '19 21:01 jkemp101