card-mod-delayed_job 0.13.0 → 0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/init/late/delayed_job_config.rb +13 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495944b801b8d704c1ed2b0712624027ba741496f609503614102482d6b1805f
|
4
|
+
data.tar.gz: d3d83f2b5e4040a13bbeb8c176e74e46201d51940de20c4a53140833d5c68a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44659e3984b2972427c6f0125669f391b3550766be65b87479f2b1ef66980381c7b5b4a015eb03bbfc4b20b99268fbb93a52a2cdc0c20848df7bf94a80fe0216
|
7
|
+
data.tar.gz: 4eac172f491309ae1e15fb0817bae0180f177e036f4f83e2a62eca58196591d1da3a0ceb586dadf0bf07e05b2522f430f54c56b1876e4ef1617f8a3ae3921f3f
|
@@ -0,0 +1,13 @@
|
|
1
|
+
return unless Cardio.config.active_job.queue_adapter == :delayed_job
|
2
|
+
|
3
|
+
Cardio.config.tap do |cc|
|
4
|
+
cc.delaying = true unless cc.delaying == false
|
5
|
+
|
6
|
+
Delayed::Worker.tap do |dw|
|
7
|
+
dw.delay_jobs = cc.delaying
|
8
|
+
dw.max_attempts = 1
|
9
|
+
dw.destroy_failed_jobs = false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
Cardio.extend Cardio::DelayedJob
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.103.
|
21
|
+
version: 1.103.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.103.
|
28
|
+
version: 1.103.4
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: daemons
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,6 +76,7 @@ extensions: []
|
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
78
|
- README.md
|
79
|
+
- init/late/delayed_job_config.rb
|
79
80
|
- lib/card/mod/delayed_job.rb
|
80
81
|
- lib/cardio/delayed_job.rb
|
81
82
|
homepage: https://decko.org
|