workhorse 0.6.4 → 0.6.5

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: 3e0ec8f7b72f3bdfbe540ba647baf9ed2c746119e6592be2b95e8e3e1397e53c
4
- data.tar.gz: 542e7ca25aca517b4539162cde18c211165b29ba8653b62653d6e0b6ecd1a715
3
+ metadata.gz: 58ce0cb4d0d2d81b7da8524a55eac6ae7ed0195fc4d49fbe3b4dd99ef8d8c4d6
4
+ data.tar.gz: 2007bf72e0603426967fb7b576f624fcb3520632150ccfc681caf2ff0725723a
5
5
  SHA512:
6
- metadata.gz: c13715991ee9eb3195afd4cef7fc3c7789025bf445bb56750f90f3c2f885401ee40efd7125335e836453dcda63cb46a4a8c5488f6b24f96e3b5e57856b3f6071
7
- data.tar.gz: 2d3f9d52eac7f1bbc9fd98ae2ba3ca57c8088b00ee5a0abe8865aeb2522dff0184f03360c9a17f375fee39a8d620d6ea2c95c861af35d686044a1f8e25dff01a
6
+ metadata.gz: aa66c279dfbcd0096437badb3561706eba17e3bc04ef422e70246e493de192c9d82ac1e083d85153bd8897c5fca8adbd7720ed9c4f25776bc3ed57d96d251de7
7
+ data.tar.gz: a3e01f2b85dfd1d1ead2f0d043bbfadf8d066859a7360263d17f98855abc30da1ffbcc0092e1171eb89d7834058e471ae6fc05d88d10a2a8ab573220e3621405
data/.gitignore CHANGED
@@ -49,3 +49,5 @@ Gemfile.lock
49
49
 
50
50
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
51
  .rvmrc
52
+
53
+ /bin/ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Workhorse Changelog
2
2
 
3
+ ## 0.6.5 - 2020-03-18
4
+
5
+ * Call `on_exception` callback on errors during polling.
6
+
3
7
  ## 0.6.4 - 2019-10-12
4
8
 
5
9
  * Fix #22 where an exception with message `No live threads left. Deadlock?`
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Sitrox
3
+ Copyright (c) 2020 Sitrox
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -371,4 +371,4 @@ Please consult the [FAQ](FAQ.md).
371
371
 
372
372
  ## Copyright
373
373
 
374
- Copyright © 2019 Sitrox. See `LICENSE` for further details.
374
+ Copyright © 2020 Sitrox. See `LICENSE` for further details.
data/RUBY_VERSION CHANGED
@@ -1 +1 @@
1
- ruby-2.3.1-p112
1
+ ruby-2.6.2-p47
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -28,6 +28,7 @@ module Workhorse
28
28
  end
29
29
  rescue Exception => e
30
30
  worker.log %(Poller stopped with exception:\n#{e.message}\n#{e.backtrace.join("\n")})
31
+ Workhorse.on_exception.call(e)
31
32
  end
32
33
  end
33
34
  end
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 0.6.4 ruby lib
2
+ # stub: workhorse 0.6.5 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "0.6.4"
6
+ s.version = "0.6.5"
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 = "2019-09-12"
11
+ s.date = "2020-03-18"
12
12
  s.files = [".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".travis.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/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/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/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.0.3".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: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.0.3
247
+ rubygems_version: 3.1.2
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Multi-threaded job backend with database queuing for ruby.