eventboss 1.9.8 → 1.9.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6155826edcd3e6c387de6ecc5f7cf8d7406397a13d62d906189f5f7263d1880
4
- data.tar.gz: 12c8d107fbad150e915d89232bbbd3db50c7df554f9eb9f5ccc167b5e75fe3ad
3
+ metadata.gz: c9bc3dee10dd3ee71827ff3f1e664064f6a08ba0a27d3901591abb5d5519ebfa
4
+ data.tar.gz: 624ecc46e585fd1456e04008b528d1f852820991464ace819d48efe271e352e6
5
5
  SHA512:
6
- metadata.gz: 20b0f34459c49a1df77eb0866cfaf0ba7503a543fac3ccc96629d5b8d4d11e4acb0c2b3d98b88ddbaeea9f2267e3a07530e792c8ab9599fb608e5ce3da1a991a
7
- data.tar.gz: 37e43169d46597336f94f21778b55d1c7fdc95194531b49c9218ea4a70a430d5fb57ff58176344d8ebae1b0ebef99b7d1c7fad96d9010e2321047a28d100ed4a
6
+ metadata.gz: 4fd77a869314c810afc8c75aeb226f1d2a0c39b13f5a90bb465557673bfaa71ec44760e577102faf42da5ef503a31e4ceef964ef4a680a4052eb527fbd77d0a7
7
+ data.tar.gz: c2b43231b734e917cd44ae1d68807181f9ea71b6f520f6525cc04774082a1b12431d5bb3cca05e1e032ae91c7a2f75ef2400eb50792483dd58ad43a97f88e7ad
@@ -9,9 +9,9 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: ["3.0", "3.1", "3.2"]
12
+ ruby-version: ["3.3", "3.4"]
13
13
  steps:
14
- - uses: actions/checkout@v4
14
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
@@ -11,7 +11,7 @@ jobs:
11
11
  packages: write
12
12
  steps:
13
13
  - name: Check out repository
14
- uses: actions/checkout@v4
14
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15
15
 
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
@@ -14,9 +14,9 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- ruby-version: ["3.0", "3.1", "3.2"]
17
+ ruby-version: ["3.3", "3.4"]
18
18
  steps:
19
- - uses: actions/checkout@v4
19
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20
20
  - name: Set up Ruby
21
21
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby
22
22
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ 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
7
 
8
+ ## [1.9.9]
9
+
10
+ ### Fixed
11
+ - Exit cleanly on SIGTERM received during application boot, before the runner installs its graceful signal handling, so a shutdown mid-boot is no longer reported as a crash
12
+
8
13
  ## [1.9.8]
9
14
 
10
15
  - Improve performance by reusing SNS client
data/lib/eventboss/cli.rb CHANGED
@@ -30,6 +30,8 @@ module Eventboss
30
30
  end
31
31
 
32
32
  def run
33
+ setup_boot_signal_traps
34
+
33
35
  boot_system
34
36
 
35
37
  Eventboss.logger.info('Starting eventboss...')
@@ -39,6 +41,15 @@ module Eventboss
39
41
 
40
42
  private
41
43
 
44
+ # Booting the application (e.g. loading Rails) can take long enough that a
45
+ # termination signal arrives before Runner installs its graceful signal
46
+ # handling. Without a handler the process dies non-gracefully and is
47
+ # reported as a crash. Until Runner takes over, exit cleanly on SIGTERM so
48
+ # a shutdown mid-boot is not treated as a failure.
49
+ def setup_boot_signal_traps
50
+ Signal.trap('SIGTERM') { exit 0 }
51
+ end
52
+
42
53
  def boot_system
43
54
  require 'rails'
44
55
  if ::Rails::VERSION::MAJOR < 4
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.9.8"
2
+ VERSION = "1.9.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventboss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.8
4
+ version: 1.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - AirHelp
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.6.9
191
+ rubygems_version: 4.0.16
192
192
  specification_version: 4
193
193
  summary: Eventboss Ruby Client.
194
194
  test_files: []