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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2a78729234d036fa287b95df003baddd2916c2158a15e82b1ef5c73c601f7de
4
- data.tar.gz: 294f84dc31697ef19f19a96d3d860e68d7334aaf69c9f62539c4f3ca71b32907
3
+ metadata.gz: cf2d4db525273b507522ba4ec10fb493bb9643bf5311ace3011aa8e1ddb789f9
4
+ data.tar.gz: 285c66e121b7d64f41b270165596d91c43886866d8c6504c4ca8732d34c378d0
5
5
  SHA512:
6
- metadata.gz: 8bcc7015f1f41308ce67d6bdb3feecf5db53b6b690a7f876af190da8bf3ef76ce088784f2019a79156faf14417d5e087da782f18a6e53ac8d0da6228cea73014
7
- data.tar.gz: 1f5a94f60260e94bb0a1c0a2203eab6380d97a60c8b7690a4bb7bf510e923074b019a2fe62763795b4003b36c4da80b109683a4d4026d33258359a7a5c96aa23
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module ProcessManager
5
- VERSION = "1.0.3"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
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.3
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-19 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq