Commit ad19b38b by Karl Kloppenborg

export workers

parent 6ff3073e
...@@ -93,8 +93,9 @@ namespace :sneakers do ...@@ -93,8 +93,9 @@ namespace :sneakers do
raise "[ set :workers, ['worker1', 'workerN'] ] not configured properly, please configure the workers you wish to use" if fetch(:sneakers_workers).nil? or fetch(:sneakers_workers) == false or !fetch(:sneakers_workers).kind_of? Array raise "[ set :workers, ['worker1', 'workerN'] ] not configured properly, please configure the workers you wish to use" if fetch(:sneakers_workers).nil? or fetch(:sneakers_workers) == false or !fetch(:sneakers_workers).kind_of? Array
workers = fetch(:sneakers_workers).compact.join(',') workers = fetch(:sneakers_workers).compact.join(',')
raise "Workers = #{workers}" execute :export, workers #export this to environmental variable
execute :bundle, :exec, :sneakers, args.compact.join(' ') info "Starting the sneakers processes"
#execute :bundle, :exec, :sneakers, args.compact.join(' ')
else else
# Using custom sneakers setup # Using custom sneakers setup
args.push "--index #{idx}" args.push "--index #{idx}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment