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.
- checksums.yaml +4 -4
- data/lib/lyber_core/robot.rb +7 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ccc25c9be40d3e8b1303b1ec5628b3ae9f4424dd8f7c6b391c06f75d495da45
|
4
|
+
data.tar.gz: f96569f4cf3096120fab51890d4590eda67d9e0af760c1d3a07c8dae9470684b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 734cb929eac0a1121769bc16ba843d19dd64484bdb233a749bd4c887f6461b4d9bb3f91d27e40e0347b0433b8b175e2da5f849da4e25f88bec7d2ed3aceb0ff9
|
7
|
+
data.tar.gz: d2029538c70c4a1551106ac49ffc0d6a47d509d5288462093deaa08bff546fae3dda79ca367cadc41c2916c55085a34c4c26c51286a22b5fc7596f6c2fab5240
|
data/lib/lyber_core/robot.rb
CHANGED
@@ -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
|
+
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:
|
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.
|
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
|