delayed_job_prevent_duplicate 0.1.2 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb905b0a47328215027e975ba4e64abae6bb3f9cdeeabffb711c3dfefefd2f5e
|
4
|
+
data.tar.gz: 77ced18194a083efd6442f88c8597d0242b66123b2eef6c12d8d8080fa8071f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c03851f146bcc64ef3fd5d1ac3d3cdb6f7d86c71045d249be667e6deb24ccb14365063039c37f06e7ad0aec96dd77379b4a4da9076577ef3f09c08f597c3a528
|
7
|
+
data.tar.gz: 0af816c92fc30a3aa78b57be51bace5106ecc0b5bf0c268b3792c5bdb1ad2ee947afa1d9eaa8e1caf3587482ce4b5bf6fd2226671207c2454c39a820af08f385
|
@@ -5,7 +5,7 @@ require_relative "lib/delayed_job_prevent_duplicate/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "delayed_job_prevent_duplicate"
|
7
7
|
spec.version = DelayedJobPreventDuplicate::VERSION
|
8
|
-
spec.authors = ["pabois"]
|
8
|
+
spec.authors = ["pabois", "arnaudlevy", "SebouChu"]
|
9
9
|
spec.email = ["pierreandre.boissinot@noesya.coop"]
|
10
10
|
|
11
11
|
spec.summary = "Prevent delayed_job to enqueue a task already enqueued"
|
@@ -94,7 +94,6 @@ class DelayedDuplicatePreventionPlugin < Delayed::Plugin
|
|
94
94
|
possible_dupes = Delayed::Job.where(attempts: 0, locked_at: nil) # Only jobs not started, otherwise it would never compute a real change if the job is currently running
|
95
95
|
.where(signature: job.signature) # Same signature
|
96
96
|
possible_dupes = possible_dupes.where.not(id: job.id) if job.id.present?
|
97
|
-
byebug
|
98
97
|
possible_dupes
|
99
98
|
end
|
100
99
|
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_prevent_duplicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pabois
|
8
|
-
|
8
|
+
- arnaudlevy
|
9
|
+
- SebouChu
|
10
|
+
autorequire:
|
9
11
|
bindir: exe
|
10
12
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
13
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: delayed_job
|
@@ -59,7 +61,7 @@ metadata:
|
|
59
61
|
homepage_uri: https://github.com/noesya/delayed_job_prevent_duplicate
|
60
62
|
source_code_uri: https://github.com/noesya/delayed_job_prevent_duplicate
|
61
63
|
changelog_uri: https://github.com/noesya/delayed_job_prevent_duplicate/CHANGELOG.md
|
62
|
-
post_install_message:
|
64
|
+
post_install_message:
|
63
65
|
rdoc_options: []
|
64
66
|
require_paths:
|
65
67
|
- lib
|
@@ -74,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
76
|
- !ruby/object:Gem::Version
|
75
77
|
version: '0'
|
76
78
|
requirements: []
|
77
|
-
rubygems_version: 3.4
|
78
|
-
signing_key:
|
79
|
+
rubygems_version: 3.1.4
|
80
|
+
signing_key:
|
79
81
|
specification_version: 4
|
80
82
|
summary: Prevent delayed_job to enqueue a task already enqueued
|
81
83
|
test_files: []
|