activejob-retry 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/active_job/retry.rb +11 -9
- data/lib/active_job/retry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62121fac94a24726a037706f645dde646c99d6c1
|
4
|
+
data.tar.gz: 85be924cff39e2494302ba2789f08094418c3901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b522502d0e9ccb5b8302f81110273d757400238fb21b1708adf3ec65145313f9817f37c32a5ea7ee80b7e043405e03d4d4fb772c4226be957ecfcd37c467a24
|
7
|
+
data.tar.gz: aeb5b20b8d3fe2bd56c8a5a81756ed8592f98df9a6e2fca8368fe41ce6ec1ca17c6caff31ad126a2d7f38977dcd2206e455e56a25ea5b1f76695d2896d2ac549
|
data/Gemfile.lock
CHANGED
data/lib/active_job/retry.rb
CHANGED
@@ -12,18 +12,20 @@ end
|
|
12
12
|
|
13
13
|
module ActiveJob
|
14
14
|
module Retry
|
15
|
-
|
16
|
-
'ActiveJob::QueueAdapters::
|
17
|
-
'ActiveJob::QueueAdapters::
|
18
|
-
'ActiveJob::QueueAdapters::
|
19
|
-
'ActiveJob::QueueAdapters::
|
15
|
+
PROBLEMATIC_ADAPTERS = [
|
16
|
+
'ActiveJob::QueueAdapters::InlineAdapter',
|
17
|
+
'ActiveJob::QueueAdapters::QuAdapter',
|
18
|
+
'ActiveJob::QueueAdapters::QueueClassicAdapter',
|
19
|
+
'ActiveJob::QueueAdapters::SidekiqAdapter',
|
20
|
+
'ActiveJob::QueueAdapters::SneakersAdapter',
|
21
|
+
'ActiveJob::QueueAdapters::SuckerPunchAdapter'
|
20
22
|
].freeze
|
21
23
|
|
22
24
|
def self.included(base)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
if PROBLEMATIC_ADAPTERS.include?(ActiveJob::Base.queue_adapter.name)
|
26
|
+
warn("#{ActiveJob::Base.queue_adapter.name} does not support delayed retries, " \
|
27
|
+
'so does not work with ActiveJob::Retry. You may experience strange ' \
|
28
|
+
'behaviour.')
|
27
29
|
end
|
28
30
|
|
29
31
|
base.extend(ClassMethods)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-retry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Seymour
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|