mina-sidekiq 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c44e452a24c0f2715f55ade756c9dcff1f997989
4
- data.tar.gz: 838a5fe9abe54585b3d325c67bafc3fc6951479e
3
+ metadata.gz: f110d06a373caf157e7ad1ab5813aa8d567bfffd
4
+ data.tar.gz: f00cd8d8d44198bb991c70d0748dad73042c1448
5
5
  SHA512:
6
- metadata.gz: 46875f9b836d544d240850049c47fceea3e4f1d463237790a0ae0296cb5a5f3852f0c7802905ee3ed083757da6ff95e3c25692ab99e806d8f52d140b3b4bdad9
7
- data.tar.gz: 48a32c7682f01d9b3ff76902d37ae3899e9cec79a6bb3d73950277a08fdd5842e3330e72c808e106f3be7fb915cf6619c40745c3fd4ac1b6bf1ab3cceeb64d10
6
+ metadata.gz: 09813f8ebdb01e318e6c547e756a7fd3bbb9180c21d66d229cf8228c80b4eadf9e0af69b104597b6162798ef339b5ed2d6b42f97f07d75cad945b9c8085cb5d4
7
+ data.tar.gz: 5f1a6964a8204656b6a9bab472e4fdac368321550248ac01845d84281cf565e84d09ce725009882507f1423ce557182034985f57fd2728affc4a36e148b13644
data/.travis.yml CHANGED
@@ -5,7 +5,4 @@ rvm:
5
5
  - "2.0.0"
6
6
  - "2.1.0"
7
7
  services: redis
8
- before_script:
9
- - cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
10
- - ssh -o StrictHostKeyChecking=no localhost "exit"
11
- nv: FORCE_ADD_SSH_KEY=1
8
+ env: FORCE_ADD_SSH_KEY=1
data/Changelog.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.4.1 2016-06-27
5
+ ----------------
6
+ * Default `sidekiq_concurrency` to nil. It now needs explicitly set to
7
+ override concurrency specified in config file
8
+
4
9
  0.4.0 2016-05-16
5
10
  ----------------
6
11
 
@@ -59,8 +59,8 @@ set_default :sidekiq_pid, lambda { "#{deploy_to}/#{shared_path}/pids/sidekiq.pid
59
59
  set_default :sidekiq_processes, 1
60
60
 
61
61
  # ### sidekiq_concurrency
62
- # Sets the number of sidekiq threads per process
63
- set_default :sidekiq_concurrency, 25
62
+ # Sets the number of sidekiq threads per process (overrides value in sidekiq.yml)
63
+ set_default :sidekiq_concurrency, nil
64
64
 
65
65
  # ## Control Tasks
66
66
  namespace :sidekiq do
@@ -112,9 +112,14 @@ namespace :sidekiq do
112
112
  task :start => :environment do
113
113
  queue %[echo "-----> Start sidekiq"]
114
114
  for_each_process do |pid_file, idx|
115
+ concurrency_arg = if sidekiq_concurrency.nil?
116
+ ""
117
+ else
118
+ "-c #{sidekiq_concurrency}"
119
+ end
115
120
  queue %{
116
121
  cd "#{deploy_to}/#{current_path}"
117
- #{echo_cmd %[#{sidekiq} -d -e #{rails_env} -C #{sidekiq_config} -c #{sidekiq_concurrency} -i #{idx} -P #{pid_file} -L #{sidekiq_log}] }
122
+ #{echo_cmd %[#{sidekiq} -d -e #{rails_env} #{concurrency_arg} -C #{sidekiq_config} -i #{idx} -P #{pid_file} -L #{sidekiq_log}] }
118
123
  }
119
124
  end
120
125
  end
@@ -1,5 +1,5 @@
1
1
  module MinaSidekiq
2
2
  def self.version
3
- "0.4.0"
3
+ "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joerg Thalheim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina