cpee-instantiation 1.1.2 → 1.1.4
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/cpee-instantiation.gemspec +1 -1
- data/lib/cpee-instantiation/instantiation.rb +5 -4
- 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: 206809602ed34edfa0348fe01af686f07a728ae0796af92b9c889195dbb2cd92
|
4
|
+
data.tar.gz: 4abf6ca630a0f32cb8932508f17ffdb9a02ecda82ad9bca7bc40ed333e64b23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6fcb313df7db5a711276c6819a28ffdac5a34276ab4e2b9128d1cad08f9f62b71563a756e353b46f5be5ec175e68f3bd12c465f4bc42782f2d2cb74ecc644d5
|
7
|
+
data.tar.gz: 7dfe51ff851b6de41ea804c4e48536da2257e81e6c56f2bc6caa0bc8a1ef34566a20301be3c7e421112f4aaa887cd349428d6a88440f66c687dab19af100053c
|
data/cpee-instantiation.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee-instantiation"
|
3
|
-
s.version = "1.1.
|
3
|
+
s.version = "1.1.4"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
6
6
|
s.summary = "Subprocess instantiation service for the cloud process execution engine (cpee.org)"
|
@@ -25,8 +25,6 @@ require 'uri'
|
|
25
25
|
require 'redis'
|
26
26
|
require 'json'
|
27
27
|
|
28
|
-
require 'pry'
|
29
|
-
|
30
28
|
require_relative 'utils'
|
31
29
|
|
32
30
|
module CPEE
|
@@ -99,11 +97,13 @@ module CPEE
|
|
99
97
|
condition = behavior.match(/_([^_]+)_/)&.[](1) || 'finished'
|
100
98
|
|
101
99
|
if cb
|
102
|
-
cbk = '
|
100
|
+
cbk = 'instantiation_' + Digest::MD5.hexdigest(Kernel::rand().to_s)
|
103
101
|
n = doc.find('/*/sub:subscriptions') rescue []
|
104
102
|
if (n.empty?)
|
105
103
|
n = doc.root.add('subscriptions')
|
106
104
|
n.namespaces.add(nil,'http://riddl.org/ns/common-patterns/notifications-producer/2.0')
|
105
|
+
else
|
106
|
+
n = n.first
|
107
107
|
end
|
108
108
|
n.append('subscription', :id => cbk, :url => File.join(selfurl,'callback',cbk))
|
109
109
|
.append('topic', :id => 'state')
|
@@ -210,7 +210,6 @@ module CPEE
|
|
210
210
|
include Helpers
|
211
211
|
|
212
212
|
def response
|
213
|
-
puts "InstantiateXML response method called: #{@a[1]}",
|
214
213
|
cpee = @h['X_CPEE'] || @a[0]
|
215
214
|
behavior = @a[1] ? 'fork_ready' : @p[0].value
|
216
215
|
data = @a[1] ? 0 : 1
|
@@ -244,6 +243,8 @@ module CPEE
|
|
244
243
|
key = @r.last
|
245
244
|
cb, condition, instance, uuid, instance_url = cblist.lrange(key,0,-1)
|
246
245
|
|
246
|
+
return if cb.nil?
|
247
|
+
|
247
248
|
cpee = File.dirname(instance_url)
|
248
249
|
|
249
250
|
send = {
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee-instantiation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
- Heinrich Fenkart
|
9
|
-
autorequire:
|
10
9
|
bindir: tools
|
11
10
|
cert_chain: []
|
12
|
-
date: 2025-
|
11
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: riddl
|
@@ -95,7 +94,6 @@ homepage: http://cpee.org/
|
|
95
94
|
licenses:
|
96
95
|
- LGPL-3.0-or-later
|
97
96
|
metadata: {}
|
98
|
-
post_install_message:
|
99
97
|
rdoc_options: []
|
100
98
|
require_paths:
|
101
99
|
- lib
|
@@ -110,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
108
|
- !ruby/object:Gem::Version
|
111
109
|
version: '0'
|
112
110
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
111
|
+
rubygems_version: 3.6.2
|
115
112
|
specification_version: 4
|
116
113
|
summary: Subprocess instantiation service for the cloud process execution engine (cpee.org)
|
117
114
|
test_files: []
|