workhorse 1.2.22 → 1.2.23

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: 20eef573615adbfed9958ae1d5f2e005cfca827060f2b632dbd17b624c2273ec
4
- data.tar.gz: 3be17bded0b07b544b5d1d2978470d7684dc1d2e4ca6588b03745a02af11bfd2
3
+ metadata.gz: 125a11897a14379bcfde7baeae43509bf50780c11718994a501f42d908da56fe
4
+ data.tar.gz: 266663dc0da3fe8bf70ab5fdd3ee4338b463583aad56033c1039112f9bbbbba1
5
5
  SHA512:
6
- metadata.gz: 1a2c29dc077d8557b4d2ff2bdad9f980d0e24f6794f5a42d26ae731f0c8a7ba24e78d980b39ba087d985529ce701860ef9a876eba70b38c10d007f6516ed6a9b
7
- data.tar.gz: 88c45f4571b11a51021accaf4145d65fe48fbad6add8170ce830ad31c7e2ddc6b7422e41f1ca1b3f6e0a2bf06351d80f77323889945f25aac16c5068ed51dff7
6
+ metadata.gz: 6464a5e8534f8fb11cf11ed38c38bf2279f9a3ac02cf8f28da601e7d1c0d08b67a45fe4da27e90bc4cef6716e6bd10d198c46b0f4026c11ba1664a71f7da820f
7
+ data.tar.gz: 31039da95c605cf65f65ec3be0f310e2368ef9d7b8f39fd5d320207e84a05f9653036747dcc45ceb44b1e8c6015a6308696c681c5c09310b0cc049da8d08b3a1
data/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Workhorse Changelog
2
2
 
3
+ ## 1.2.23 - 2024-08-26
4
+
5
+ * Fix bug introduced in 1.2.22 where the lock file would not be released. This
6
+ is done by reverting the changes for `at_exit` handlers. Make sure the Gem
7
+ 'debug' is not loaded (e.g. via `gem 'debug', environment: :development`) for
8
+ workhorse processes.
9
+
10
+ Sitrox reference: #128709.
11
+
3
12
  ## 1.2.22 - 2024-08-20
4
13
 
5
14
  * Change `retry-on` in actions to `any`: also retry when the action hits a timeout
6
15
 
7
16
  * Comply with RuboCop
8
17
 
9
- * Skip `at_exit` handlers when exiting in ShellHandler
18
+ * Skip `at_exit` handlers when exiting in ShellHandler. This ensures
19
+ compatibility with the `debug` gem, which whould otherwise hang when using the
20
+ Workhorse shell handler.
10
21
 
11
22
  Sitrox reference: #128333.
12
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.22
1
+ 1.2.23
@@ -19,22 +19,22 @@ module Workhorse
19
19
  begin
20
20
  case ARGV.first
21
21
  when 'start'
22
- exit! daemon.start
22
+ exit daemon.start
23
23
  when 'stop'
24
- exit! daemon.stop
24
+ exit daemon.stop
25
25
  when 'kill'
26
- exit! daemon.stop(true)
26
+ exit daemon.stop(true)
27
27
  when 'status'
28
- exit! daemon.status
28
+ exit daemon.status
29
29
  when 'watch'
30
- exit! daemon.watch
30
+ exit daemon.watch
31
31
  when 'restart'
32
- exit! daemon.restart
32
+ exit daemon.restart
33
33
  when 'restart-logging'
34
- exit! daemon.restart_logging
34
+ exit daemon.restart_logging
35
35
  when 'usage'
36
36
  usage
37
- exit! 99
37
+ exit 99
38
38
  else
39
39
  usage
40
40
  end
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 1.2.22 ruby lib
2
+ # stub: workhorse 1.2.23 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "1.2.22"
6
+ s.version = "1.2.23"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Sitrox".freeze]
11
- s.date = "2024-08-20"
11
+ s.date = "2024-08-26"
12
12
  s.files = [".github/workflows/ruby.yml".freeze, ".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, "CHANGELOG.md".freeze, "FAQ.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "RUBY_VERSION".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/rubocop".freeze, "lib/active_job/queue_adapters/workhorse_adapter.rb".freeze, "lib/generators/workhorse/install_generator.rb".freeze, "lib/generators/workhorse/templates/bin/workhorse.rb".freeze, "lib/generators/workhorse/templates/config/initializers/workhorse.rb".freeze, "lib/generators/workhorse/templates/create_table_jobs.rb".freeze, "lib/workhorse.rb".freeze, "lib/workhorse/active_job_extension.rb".freeze, "lib/workhorse/daemon.rb".freeze, "lib/workhorse/daemon/shell_handler.rb".freeze, "lib/workhorse/db_job.rb".freeze, "lib/workhorse/enqueuer.rb".freeze, "lib/workhorse/jobs/cleanup_succeeded_jobs.rb".freeze, "lib/workhorse/jobs/detect_stale_jobs_job.rb".freeze, "lib/workhorse/jobs/run_active_job.rb".freeze, "lib/workhorse/jobs/run_rails_op.rb".freeze, "lib/workhorse/performer.rb".freeze, "lib/workhorse/poller.rb".freeze, "lib/workhorse/pool.rb".freeze, "lib/workhorse/scoped_env.rb".freeze, "lib/workhorse/worker.rb".freeze, "test/active_job/queue_adapters/workhorse_adapter_test.rb".freeze, "test/lib/db_schema.rb".freeze, "test/lib/jobs.rb".freeze, "test/lib/test_helper.rb".freeze, "test/workhorse/daemon_test.rb".freeze, "test/workhorse/db_job_test.rb".freeze, "test/workhorse/enqueuer_test.rb".freeze, "test/workhorse/performer_test.rb".freeze, "test/workhorse/poller_test.rb".freeze, "test/workhorse/pool_test.rb".freeze, "test/workhorse/worker_test.rb".freeze, "workhorse.gemspec".freeze]
13
13
  s.rubygems_version = "3.4.6".freeze
14
14
  s.summary = "Multi-threaded job backend with database queuing for ruby.".freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workhorse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.22
4
+ version: 1.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler