Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Number of threads per queue #3

Open
w1150n opened this issue Mar 22, 2013 · 1 comment
Open

Number of threads per queue #3

w1150n opened this issue Mar 22, 2013 · 1 comment

Comments

@w1150n
Copy link

w1150n commented Mar 22, 2013

Is it possible to configure the number of workers per queue? I tried the following, but it only started 1 thread:

config[:extensions] = { :worker => { :resque => [{ :thread_count => 10, :thread_priority => 4, # bit bellow NORM (5) 'QUEUES' => %w(twitter flickr), 'INTERVAL' => 2.0, # default is 5.0 'VERBOSE' => true, # verbose logging #'VVERBOSE' => true, # very_verbose logging }, { :thread_count => 1, :thread_priority => 4, # bit bellow NORM (5) 'QUEUES' => %w(recurring), 'INTERVAL' => 2.0, # default is 5.0 'VERBOSE' => true, # verbose logging #'VVERBOSE' => true, # very_verbose logging }] } }

@kares
Copy link
Member

kares commented Apr 2, 2013

it's not possible - this is the way Resque workers work - if you start a rake task in MRI it will not start multiple threads

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

No branches or pull requests

2 participants