sidekiq-runner 0.1.4 → 0.1.5
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.god +4 -0
- data/lib/sidekiq-runner/sidekiq_instance.rb +3 -1
- data/lib/sidekiq-runner/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40e3ccfb608ce10065ae202f0c2115beb6d12731
|
4
|
+
data.tar.gz: 666ab8b6d2581309f11c082848bbb24e5e2ec1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070bba932a4942753c19bf5e585da2f600bae70d89d757dd5989a8e7ac71cb13f30b91d02773f0128b733e225d75747e53e4f7b41f2f03e5fc3fc7e950d9501a
|
7
|
+
data.tar.gz: 992af79e5d6b807afeaef9382b68fb6a7376e43d85dbf73636373318ff0358ce01225267e69700dc1dc306aba284a43fa46968305bdea2be717d77060ce9ba5b
|
@@ -21,6 +21,10 @@ sidekiq_config.each do |name, skiq|
|
|
21
21
|
w.pid_file = skiq.pidfile
|
22
22
|
w.behavior(:clean_pid_file)
|
23
23
|
|
24
|
+
# Set uid/gid if requested.
|
25
|
+
w.uid = skiq.uid if skiq.uid
|
26
|
+
w.gid = skiq.gid if skiq.gid
|
27
|
+
|
24
28
|
# Working directory has to be set properly.
|
25
29
|
# Be aware that by default, God sets the working directory to / (root dir).
|
26
30
|
w.dir = skiq.chdir || (defined?(Rails) ? Rails.root : Dir.pwd)
|
@@ -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, :tag, :rbtrace]
|
7
|
+
CONFIG_FILE_ATTRIBUTES = [:concurrency, :verbose, :pidfile, :logfile, :tag, :rbtrace, :uid, :gid]
|
8
8
|
CONFIG_FILE_ATTRIBUTES.each { |att| attr_accessor att }
|
9
9
|
|
10
10
|
attr_reader :name, :queues
|
@@ -24,6 +24,8 @@ module SidekiqRunner
|
|
24
24
|
@verbose = false
|
25
25
|
@tag = name
|
26
26
|
@rbtrace = false
|
27
|
+
@uid = nil
|
28
|
+
@gid = nil
|
27
29
|
end
|
28
30
|
|
29
31
|
def add_queue(queue_name, weight = 1)
|
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.1.
|
4
|
+
version: 0.1.5
|
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: 2016-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.5
|
76
|
+
rubygems_version: 2.4.5
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Sidekiq configuration and rake tasks
|