cpee 2.1.43 → 2.1.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/js/instance.js +43 -26
- data/cpee.gemspec +1 -1
- data/server/executionhandlers/ruby/connection.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ce47d58b06ffcc164ea6aa7a65763c687fcf93a056f1dd7bdef5af21123fca
|
4
|
+
data.tar.gz: 5b668300d35d8d4aeea11855142b010cc3f32e10a57de58fcdcedc9829fa81eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc91dd497c1a1db18920bef11121a5e3446ec01ef15cea2ffb8159683193c4c3c1dd1e0974bf395acfde1a94ec64bad70586a384b92305a287da794ab0c426a
|
7
|
+
data.tar.gz: a31663de83aaf09956d3a303c59e5421f13211da02cf74d63d1834b3a726c8860b6928a39fa5cf4dface4c3d476dfa29b4208a87e22b2ea20d9ccf7534416682
|
data/cockpit/js/instance.js
CHANGED
@@ -19,7 +19,8 @@ function global_init() {
|
|
19
19
|
subscription_state = 'less';
|
20
20
|
save['state']= undefined;
|
21
21
|
save['dsl'] = undefined;
|
22
|
-
save['
|
22
|
+
save['activity_red_states'] = {}
|
23
|
+
save['activity_blue_states'] = {}
|
23
24
|
save['graph'] = undefined;
|
24
25
|
save['graph_theme'] = undefined;
|
25
26
|
save['graph_adaptor'] = undefined;
|
@@ -682,25 +683,57 @@ function monitor_instance_pos() {// {{{
|
|
682
683
|
}// }}}
|
683
684
|
|
684
685
|
function monitor_instance_running(content,event) {// {{{
|
685
|
-
if (save['state'] == "stopping") return;
|
686
686
|
if (event == "calling") {
|
687
|
-
if (!save['
|
688
|
-
save['
|
687
|
+
if (!save['activity_red_states'][content['activity-uuid']]) {
|
688
|
+
save['activity_red_states'][content['activity-uuid']] = true
|
689
689
|
format_visual_add(content.activity,"active")
|
690
690
|
}
|
691
691
|
} else if (event == "manipulating") {
|
692
|
-
if (!save['
|
693
|
-
save['
|
692
|
+
if (!save['activity_red_states'][content['activity-uuid']]) {
|
693
|
+
save['activity_red_states'][content['activity-uuid']] = true
|
694
694
|
format_visual_add(content.activity,"active")
|
695
695
|
}
|
696
696
|
} else if (event == "done") {
|
697
|
-
if (save['
|
698
|
-
|
699
|
-
format_visual_remove(content.activity,"active")
|
700
|
-
setTimeout(() => {delete save['activity_states'][content['activity-uuid']]},5000);
|
697
|
+
if (save['activity_red_states'][content['activity-uuid']]) {
|
698
|
+
format_visual_remove(content.activity,"active");
|
701
699
|
}
|
700
|
+
save['activity_red_states'][content['activity-uuid']] = true
|
701
|
+
setTimeout(() => {delete save['activity_red_states'][content['activity-uuid']]},5000);
|
702
702
|
}
|
703
703
|
} // }}}
|
704
|
+
function monitor_instance_pos_change(content) {// {{{
|
705
|
+
if (content['at']) {
|
706
|
+
$.each(content['at'],function(a,b){
|
707
|
+
if (!save['activity_blue_states'][b.uuid]) {
|
708
|
+
save['activity_blue_states'][b.uuid] = true
|
709
|
+
format_visual_add(b.position,"passive");
|
710
|
+
}
|
711
|
+
});
|
712
|
+
}
|
713
|
+
if (content['after']) {
|
714
|
+
$.each(content['after'],function(a,b){
|
715
|
+
if (!save['activity_blue_states'][b.uuid]) {
|
716
|
+
save['activity_blue_states'][b.uuid] = true
|
717
|
+
format_visual_add(b.position,"passive");
|
718
|
+
}
|
719
|
+
});
|
720
|
+
}
|
721
|
+
if (content['unmark']) {
|
722
|
+
$.each(content['unmark'],function(a,b){
|
723
|
+
if (save['activity_blue_states'][b.uuid]) {
|
724
|
+
format_visual_remove(b.position,"passive")
|
725
|
+
console.log('rrrrr');
|
726
|
+
}
|
727
|
+
save['activity_blue_states'][b.uuid] = true
|
728
|
+
setTimeout(() => {delete save['activity_blue_states'][b.uuid]},5000);
|
729
|
+
});
|
730
|
+
}
|
731
|
+
if (!content['at'] && !content['unmark'] && !content['after'] && !content['wait']) {
|
732
|
+
monitor_instance_pos();
|
733
|
+
}
|
734
|
+
} // }}}
|
735
|
+
|
736
|
+
|
704
737
|
function monitor_instance_state_change(notification) { //{{{
|
705
738
|
if ($('#trackcolumn').length > 0) {
|
706
739
|
if (notification == "finished" || notification == "abandoned") {
|
@@ -763,22 +796,6 @@ function monitor_instance_state_change(notification) { //{{{
|
|
763
796
|
$("#state_text").text(notification);
|
764
797
|
}
|
765
798
|
} //}}}
|
766
|
-
function monitor_instance_pos_change(content) {// {{{
|
767
|
-
if (content['unmark']) {
|
768
|
-
$.each(content['unmark'],function(a,b){
|
769
|
-
format_visual_remove(b.position,"passive")
|
770
|
-
});
|
771
|
-
}
|
772
|
-
if (content['at']) {
|
773
|
-
$.each(content['at'],function(a,b){
|
774
|
-
format_visual_add(b.position,"passive");
|
775
|
-
});
|
776
|
-
}
|
777
|
-
if (!content['at'] && !content['unmark'] && !content['after'] && !content['wait']) {
|
778
|
-
monitor_instance_pos();
|
779
|
-
}
|
780
|
-
} // }}}
|
781
|
-
|
782
799
|
function monitor_instance_vote_add(parts) {// {{{
|
783
800
|
var ctv = $("#votes");
|
784
801
|
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "2.1.
|
3
|
+
s.version = "2.1.44"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|
@@ -200,6 +200,10 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
200
200
|
true
|
201
201
|
end # }}}
|
202
202
|
|
203
|
+
def activity_uuid
|
204
|
+
@handler_activity_uuid
|
205
|
+
end
|
206
|
+
|
203
207
|
def inform_activity_done # {{{
|
204
208
|
@controller.notify("activity/done", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position)
|
205
209
|
@controller.notify("status/resource_utilization", :mib => GetProcessMem.new.mb, **Process.times.to_h)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-03-
|
13
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: riddl
|