sidekiq-runner 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq-runner/sidekiq_instance.rb +3 -1
- data/lib/sidekiq-runner/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: b5de59dc4e82d9a2d46284bd830bf441e17fb44f
|
4
|
+
data.tar.gz: 00be61f61b236d56844378de4370b356bebde65a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9738ed04dd491a0176e586df1537a78c8300423be76306c3f566239e92fdd1c4634ea49b85932e1f4b8592a27f3f664f3f57a03cb8b93f4981a3c337680e067a
|
7
|
+
data.tar.gz: 3ba4a7a8268edd6f85631221ced39e9a9921b1c53cf5d9559cbdc75a04ca8146194f405370b1388b9bc5863b1d6fbb68e2f2fd32883756a0bbabd55fd6fe5a95
|
@@ -4,7 +4,7 @@ module SidekiqRunner
|
|
4
4
|
RUNNER_ATTRIBUTES = [:bundle_env, :chdir, :requirefile]
|
5
5
|
RUNNER_ATTRIBUTES.each { |att| attr_accessor att }
|
6
6
|
|
7
|
-
CONFIG_FILE_ATTRIBUTES = [:concurrency, :verbose, :pidfile, :logfile]
|
7
|
+
CONFIG_FILE_ATTRIBUTES = [:concurrency, :verbose, :pidfile, :logfile, :tag]
|
8
8
|
CONFIG_FILE_ATTRIBUTES.each { |att| attr_accessor att }
|
9
9
|
|
10
10
|
attr_reader :name, :queues
|
@@ -22,6 +22,7 @@ module SidekiqRunner
|
|
22
22
|
@logfile = File.join(Dir.pwd, 'log', "#{@name}.log")
|
23
23
|
@concurrency = 4
|
24
24
|
@verbose = false
|
25
|
+
@tag = name
|
25
26
|
end
|
26
27
|
|
27
28
|
def add_queue(queue_name, weight = 1)
|
@@ -64,6 +65,7 @@ module SidekiqRunner
|
|
64
65
|
cmd << "-P #{pidfile}"
|
65
66
|
cmd << "-e #{Rails.env}" if defined?(Rails)
|
66
67
|
cmd << "-r #{requirefile}" if requirefile
|
68
|
+
cmd << "-g #{tag}"
|
67
69
|
|
68
70
|
queues.each do |q, w|
|
69
71
|
cmd << "-q #{q},#{w.to_s}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FlavourSys Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|