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 +4 -4
- data/.travis.yml +1 -4
- data/Changelog.md +5 -0
- data/lib/mina_sidekiq/tasks.rb +8 -3
- data/lib/mina_sidekiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f110d06a373caf157e7ad1ab5813aa8d567bfffd
|
4
|
+
data.tar.gz: f00cd8d8d44198bb991c70d0748dad73042c1448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09813f8ebdb01e318e6c547e756a7fd3bbb9180c21d66d229cf8228c80b4eadf9e0af69b104597b6162798ef339b5ed2d6b42f97f07d75cad945b9c8085cb5d4
|
7
|
+
data.tar.gz: 5f1a6964a8204656b6a9bab472e4fdac368321550248ac01845d84281cf565e84d09ce725009882507f1423ce557182034985f57fd2728affc4a36e148b13644
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
data/lib/mina_sidekiq/tasks.rb
CHANGED
@@ -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,
|
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}
|
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
|
data/lib/mina_sidekiq/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mina
|