riverqueue 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/client.rb +2 -2
- data/lib/insert_opts.rb +0 -6
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff63f8dce021accd460f7009b3db5eb562f787d2df47f7de69f754a1f9d1734
|
4
|
+
data.tar.gz: cd0b0f7abacdc94d5db17a96d20c597c2e6f7de341b563cde46325459c42490e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaa89fce622ca310f58b5e1c76442e4284dd537469732deb0c9a37c14e1d93db1e6902f13f40bdb289976ddd2e68ec2f382b2a2c5b16d2684872491351d24c5a
|
7
|
+
data.tar.gz: 7fad9dc2cdfc7087e386f1dc0336b403bc94a86ddcddd90dc681f973f7cda9b1e46e0c4f454db35f007cab1f67819a33d7ce52cb9a01cead3ced069f30c646ea
|
data/lib/client.rb
CHANGED
@@ -210,7 +210,7 @@ module River
|
|
210
210
|
if unique_opts.by_args
|
211
211
|
parsed_args = JSON.parse(insert_params.encoded_args)
|
212
212
|
filtered_args = if unique_opts.by_args.is_a?(Array)
|
213
|
-
parsed_args.
|
213
|
+
parsed_args.slice(*unique_opts.by_args)
|
214
214
|
else
|
215
215
|
parsed_args
|
216
216
|
end
|
@@ -220,7 +220,7 @@ module River
|
|
220
220
|
end
|
221
221
|
|
222
222
|
if unique_opts.by_period
|
223
|
-
lower_period_bound = truncate_time(@time_now_utc.call, unique_opts.by_period).utc
|
223
|
+
lower_period_bound = truncate_time(insert_params.scheduled_at || @time_now_utc.call, unique_opts.by_period).utc
|
224
224
|
|
225
225
|
unique_key += "&period=#{lower_period_bound.strftime("%FT%TZ")}"
|
226
226
|
end
|
data/lib/insert_opts.rb
CHANGED
@@ -72,12 +72,6 @@ module River
|
|
72
72
|
# given job kind, a single instance is allowed for each combination of args
|
73
73
|
# and queues. If either args or queue is changed on a new job, it's allowed to
|
74
74
|
# be inserted as a new job.
|
75
|
-
#
|
76
|
-
# Uniquenes is checked at insert time by taking a Postgres advisory lock,
|
77
|
-
# doing a look up for an equivalent row, and inserting only if none was found.
|
78
|
-
# There's no database-level mechanism that guarantees jobs stay unique, so if
|
79
|
-
# an equivalent row is inserted out of band (or batch inserted, where a unique
|
80
|
-
# check doesn't occur), it's conceivable that duplicates could coexist.
|
81
75
|
class UniqueOpts
|
82
76
|
# Indicates that uniqueness should be enforced for any specific instance of
|
83
77
|
# encoded args for a job.
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riverqueue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Gentry
|
8
8
|
- Brandur Leach
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-04-12 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: River is a fast job queue for Go. Use this gem in conjunction with gems
|
15
14
|
riverqueue-activerecord or riverqueue-sequel to insert jobs in Ruby which will be
|
@@ -33,7 +32,6 @@ metadata:
|
|
33
32
|
changelog_uri: https://github.com/riverqueue/riverqueue-ruby/blob/master/CHANGELOG.md
|
34
33
|
rubygems_mfa_required: 'true'
|
35
34
|
source_code_uri: https://github.com/riverqueue/riverqueue-ruby
|
36
|
-
post_install_message:
|
37
35
|
rdoc_options: []
|
38
36
|
require_paths:
|
39
37
|
- lib
|
@@ -48,8 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
46
|
- !ruby/object:Gem::Version
|
49
47
|
version: '0'
|
50
48
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
52
|
-
signing_key:
|
49
|
+
rubygems_version: 3.6.2
|
53
50
|
specification_version: 4
|
54
51
|
summary: River is a fast job queue for Go.
|
55
52
|
test_files: []
|