mini_scheduler 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mini_scheduler/version.rb +1 -1
- data/lib/mini_scheduler.rb +13 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 319678529749db26d855d097741f1ff271bb3f19e87276eb764ede430f831d0e
|
4
|
+
data.tar.gz: e01a47b807bb03ee1f2f97a36f55d95663cb9a79b5cb87bb6fef64c45969c961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 581b32d6f15869169797af99f68c3ffc4c137e54404b77a2f62948d8e448e822821fa24a56571d66355c96e16d2e38e321995b2b9f606e01caaeeec8aa8bc74a
|
7
|
+
data.tar.gz: 81467c469e97e95510dff3749d3efeedd7eb58344bb7ff30357979c05b8398fc9a75f282f8a8a60f0f8241861edafbcf4a85ff1091557f44236cc19d6fba5a01
|
data/CHANGELOG.md
CHANGED
data/lib/mini_scheduler.rb
CHANGED
@@ -4,7 +4,12 @@ require 'mini_scheduler/schedule'
|
|
4
4
|
require 'mini_scheduler/schedule_info'
|
5
5
|
require 'mini_scheduler/manager'
|
6
6
|
require 'mini_scheduler/distributed_mutex'
|
7
|
-
require 'sidekiq
|
7
|
+
require 'sidekiq'
|
8
|
+
|
9
|
+
begin
|
10
|
+
require 'sidekiq/exception_handler'
|
11
|
+
rescue LoadError
|
12
|
+
end
|
8
13
|
|
9
14
|
module MiniScheduler
|
10
15
|
|
@@ -13,7 +18,13 @@ module MiniScheduler
|
|
13
18
|
end
|
14
19
|
|
15
20
|
class SidekiqExceptionHandler
|
16
|
-
|
21
|
+
if defined?(Sidekiq::ExceptionHandler)
|
22
|
+
extend Sidekiq::ExceptionHandler
|
23
|
+
else
|
24
|
+
def self.handle_exception(exception, context)
|
25
|
+
Sidekiq.handle_exception(exception, context)
|
26
|
+
end
|
27
|
+
end
|
17
28
|
end
|
18
29
|
|
19
30
|
def self.job_exception_handler(&blk)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
- Neil Lalonde
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sidekiq
|
@@ -182,7 +182,7 @@ homepage: https://github.com/discourse/mini_scheduler
|
|
182
182
|
licenses:
|
183
183
|
- MIT
|
184
184
|
metadata: {}
|
185
|
-
post_install_message:
|
185
|
+
post_install_message:
|
186
186
|
rdoc_options: []
|
187
187
|
require_paths:
|
188
188
|
- lib
|
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
|
-
rubygems_version: 3.1.
|
201
|
-
signing_key:
|
200
|
+
rubygems_version: 3.1.6
|
201
|
+
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Adds recurring jobs for Sidekiq
|
204
204
|
test_files: []
|