lyber-core 5.4.0 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lyber_core/robot.rb +7 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab77dcdde30aa47fd3e9ecbd8a6b196e4c445a1dc21a75cccbbb20bd08a8e28b
4
- data.tar.gz: abfdbf825d404246b8c3b3bc593c3e11ca0e3ae3f3a025fec1c785eb6605aa35
3
+ metadata.gz: 9ccc25c9be40d3e8b1303b1ec5628b3ae9f4424dd8f7c6b391c06f75d495da45
4
+ data.tar.gz: f96569f4cf3096120fab51890d4590eda67d9e0af760c1d3a07c8dae9470684b
5
5
  SHA512:
6
- metadata.gz: 81ba5ecbef60df65204d0a334fe45baa023b3107d8513ce5b9d85fc3c57e38329e93b1b71bf5185ee5bef2cb79ac1d81860189e3039ae43411816dace40fe420
7
- data.tar.gz: c3d01adb0faa8a7228c95c0dd44c26eef3375362f1f3233ce647db6f93c0042c15b6e96f56781f3d2b7c6606da0811273ab27e813ce0d00c00d60efef5217def
6
+ metadata.gz: 734cb929eac0a1121769bc16ba843d19dd64484bdb233a749bd4c887f6461b4d9bb3f91d27e40e0347b0433b8b175e2da5f849da4e25f88bec7d2ed3aceb0ff9
7
+ data.tar.gz: d2029538c70c4a1551106ac49ffc0d6a47d509d5288462093deaa08bff546fae3dda79ca367cadc41c2916c55085a34c4c26c51286a22b5fc7596f6c2fab5240
@@ -65,14 +65,18 @@ module LyberCore
65
65
  LyberCore::Log.info "#{druid} processing"
66
66
  return if @check_queued_status && !item_queued?(druid)
67
67
 
68
+ # this is the default note to pass back to workflow service, but it can be overriden by a robot that uses the Lybercore::Robot::ReturnState object to return a status
69
+ note = Socket.gethostname
70
+
71
+ # update the workflow status to indicate that started
72
+ puts('setting to start')
73
+ workflow_service.update_status(druid: druid, workflow: @workflow_name, process: @step_name, status: 'started', elapsed: 1.0, note: note)
74
+
68
75
  result = nil
69
76
  elapsed = Benchmark.realtime do
70
77
  result = perform druid # implemented in the mixed-in robot class
71
78
  end
72
79
 
73
- # this is the default note to pass back to workflow service, but it can be overriden by a robot that uses the Lybercore::Robot::ReturnState object to return a status
74
- note = Socket.gethostname
75
-
76
80
  # the final workflow state is determined by the return value of the perform step, if it is a ReturnState object,
77
81
  # we will use the defined status, otherwise default to completed
78
82
  # if a note is passed back, we will also use that instead of the default
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: 5.4.0
4
+ version: 5.5.0
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: 2019-11-21 00:00:00.000000000 Z
19
+ date: 2020-01-24 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activesupport
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: 1.3.6
202
202
  requirements: []
203
- rubygems_version: 3.0.3
203
+ rubygems_version: 3.1.2
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Core services used by the SUL Digital Library