2016-11-26 30 views
0

我正在使用廚師與poise/application_python配方來啓動芹菜工人。但我沒有找到如何設置這些工人的併發性。廚師:設置併發與poise應用程序python配方

任何人都知道該怎麼做?

在此先感謝!

我的食譜:

node['python-app'].each do |app| 
    application '/srv/' + app['name'] do 
    git do 
     repository app['repo'] 
     revision app['branch'] if app['branch'] 
     deploy_key data_bag_item('ssh_keys', app['deploy_key'])['key'] if app['deploy_key'] 
    end 
    virtualenv 
    pip_requirements 

    celery_worker do 
     app_module 'tasks' 
     user 'celery' 
     service_name "scrawler" 
    end 

    celery_config do 
     options do 
     worker_concurrency 5 # nothing... 
     concurrency 4 # nothing... 
     end 
    end 
    end 
end 
+0

我使用這個食譜:https://github.com/poise/application_python –

回答

0

由於在GitHub的問題中提到過,您需要使用舊名稱的配置選項:celeryd_concurrency