que-locks 0.4.0 → 0.4.1
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/Gemfile.lock +1 -1
- data/lib/que/locks/active_job_extensions.rb +7 -1
- data/lib/que/locks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6bccc0c9272b0a0abede5268ac195ff4b1d92e662c78cbfb99546da131263f5
|
|
4
|
+
data.tar.gz: 598bf124abb4e762c6d2edf2a7c0cb0fae14f525b78b3e7ee1c4c45477ec13af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cf8ada967c4c8b7207c3911b9d439b8f68aa54b20fa8e3b38fa78120706fc146c30300e3aff9c22712b501f66dcb339c405acc3d94d0e98a54e77bd1826f0b4
|
|
7
|
+
data.tar.gz: 75cd869f5cbc63846cbf8aa3660c240d054759f11b14b11e11e4d2e5b9d2b6b7bb5963e8933471dd4fe6f0120d86fc8351be9980a0e38df92dce13f9130099cb
|
data/Gemfile.lock
CHANGED
|
@@ -17,7 +17,13 @@ module Que::Locks
|
|
|
17
17
|
|
|
18
18
|
def do_enqueue(job, **job_options)
|
|
19
19
|
job_options[:priority] = job.priority if job.respond_to? :priority
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
# Forward the queue name as long as the job supports it, unless it's Rails 4
|
|
22
|
+
# where queue names were used for priorities (see
|
|
23
|
+
# https://github.com/rails/rails/pull/19498)
|
|
24
|
+
if job.respond_to?(:queue_name) && ::ActiveJob.version.segments.first > 4
|
|
25
|
+
job_options[:queue] = job.queue_name
|
|
26
|
+
end
|
|
21
27
|
|
|
22
28
|
que_job = ExclusiveJobWrapper.enqueue job.serialize, job_options: job_options
|
|
23
29
|
if que_job && job.respond_to?(:provider_job_id=)
|
data/lib/que/locks/version.rb
CHANGED