sidekiq-process_manager 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sidekiq/process_manager/manager.rb +4 -0
- data/lib/sidekiq/process_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2d4db525273b507522ba4ec10fb493bb9643bf5311ace3011aa8e1ddb789f9
|
4
|
+
data.tar.gz: 285c66e121b7d64f41b270165596d91c43886866d8c6504c4ca8732d34c378d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d10fb3ce00499889150d64baed11dab070c31de8d385ad55ed5665e287034f1ffb04fc4d951ba38f924860d6be58292bc13fdf4fceb74bf06e3011485de3bbfc
|
7
|
+
data.tar.gz: 1b94ddf8bee336e5600e5151fcac282f71648c88a6dabea9024464698ecdfffcdb80e02c22fb865415e3c033e1e38e3901b6e14331b634057b9283775af2ef44
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.0.4] - 2021-05-20
|
8
|
+
### Fixed
|
9
|
+
- Set $0 to "sidekiq" in preforked process so instrumentation libraries detecting sidekiq server from the command line will work.
|
7
10
|
|
8
11
|
## [1.0.3] - 2021-05-19
|
9
12
|
### Fixed
|
@@ -127,12 +127,16 @@ module Sidekiq
|
|
127
127
|
Sidekiq.options[:pidfile] = false
|
128
128
|
if @prefork
|
129
129
|
log_info("Pre-forking application")
|
130
|
+
# Set $0 so instrumentation libraries detecting sidekiq from the command run will work properly.
|
131
|
+
save_command_line = $0
|
132
|
+
$0 = File.join(File.dirname($0), "sidekiq")
|
130
133
|
# Prior to sidekiq 6.1 the method to boot the application was boot_system
|
131
134
|
if @cli.methods.include?(:boot_application) || @cli.private_methods.include?(:boot_application)
|
132
135
|
@cli.send(:boot_application)
|
133
136
|
else
|
134
137
|
@cli.send(:boot_system)
|
135
138
|
end
|
139
|
+
$0 = save_command_line
|
136
140
|
Sidekiq::ProcessManager.run_before_fork_hooks
|
137
141
|
elsif @preboot && !@preboot.empty?
|
138
142
|
if ::File.exist?(@preboot)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-process_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|