lyber-core 7.4.1 → 7.4.2

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: 88acb55427197de0577cf0d7f8438638de596f42a70b7ad9feeb2f6c78c8e3f7
4
- data.tar.gz: 303682017a51e90b3d4abb2843e903c42ca622bb3020b5ae6eaceb307eabf399
3
+ metadata.gz: ec486e6f8b80154f3af46f6a85c0cd902237cd2a5dba74a92885626ab86e14b5
4
+ data.tar.gz: 79cd8e7fe23eb7a96b7c7661c045898350314b9239fae5415340d5b1a462f109
5
5
  SHA512:
6
- metadata.gz: ad5d5b0ce4cdfbee767e96c6c563045c64f229abb4eaa9f92c2e209edabc1967ec7fb41ecd81915369d4c693d3f71680459ace8b1f535f89156d07cbfa49994f
7
- data.tar.gz: 0d7abbe5548a45117f53bf4b0097fa2604c2eebc33723db7766f8e2aece2cce43c78f988d79f3ef31991ceb32583e17619e371e8c7a97808e1cd44294b570d60
6
+ metadata.gz: 50e8533b28a2d02ab3e445cd6891150c77da736a20fb572989696989fd5214416ef24cd4d90966331376900d325f22843081b11528a91ddfbdd7e3a826fd0e7f
7
+ data.tar.gz: 461f29e4eb548881f0460f37d580de9b5c5c041bfdf516475625b9d719b58af7d0a476519ae36bf83fc5e62ca9f0c01f0506d8152b31b9b3f435e4a71c8c862f
@@ -8,12 +8,14 @@ module LyberCore
8
8
  sidekiq_options retry: 0
9
9
 
10
10
  attr_reader :workflow_name, :process, :druid
11
+ attr_accessor :check_queued_status
11
12
 
12
13
  delegate :lane_id, to: :workflow
13
14
 
14
- def initialize(workflow_name, process)
15
+ def initialize(workflow_name, process, check_queued_status: true)
15
16
  @workflow_name = workflow_name
16
17
  @process = process
18
+ @check_queued_status = check_queued_status
17
19
  end
18
20
 
19
21
  def workflow_service
@@ -108,6 +110,8 @@ module LyberCore
108
110
  end
109
111
 
110
112
  def check_item_queued?
113
+ return true unless check_queued_status
114
+
111
115
  return true if /queued/i.match?(workflow.status)
112
116
 
113
117
  msg = "Item #{druid} is not queued for #{process} (#{workflow_name}), " \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LyberCore
4
- VERSION = '7.4.1'
4
+ VERSION = '7.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyber-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.1
4
+ version: 7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alpana Pande
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2024-01-16 00:00:00.000000000 Z
19
+ date: 2024-01-31 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activesupport
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: 1.3.6
241
241
  requirements: []
242
- rubygems_version: 3.3.7
242
+ rubygems_version: 3.5.5
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Core services used by the SUL Digital Library