@@ -215,8 +215,7 @@ paths:
215
215
content :
216
216
text/plain :
217
217
schema :
218
- type : string
219
- example : r-p75189n1m43k
218
+ $ref : ' #/components/schemas/RunnerLastRun'
220
219
" 404 " :
221
220
description : the Runner specified is unknown or you don't have access to it
222
221
@@ -634,6 +633,8 @@ components:
634
633
x-field-extra-annotation : " @com.redis.om.spring.annotations.Indexed"
635
634
readOnly : true
636
635
description : the associated Workspace Id
636
+ state :
637
+ $ref : ' #/components/schemas/RunnerJobState'
637
638
creationDate :
638
639
type : integer
639
640
format : int64
@@ -669,9 +670,21 @@ components:
669
670
description : the list of Solution Run Template parameters values
670
671
items :
671
672
$ref : ' #/components/schemas/RunnerRunTemplateParameterValue'
672
- lastRunId :
673
- description : last run id from current runner
674
- type : string
673
+ lastRun :
674
+ allOf :
675
+ - $ref : ' #/components/schemas/RunnerLastRun'
676
+ - type : object
677
+ description : the last Runner Run for this Runner
678
+ parentLastRun :
679
+ allOf :
680
+ - $ref : ' #/components/schemas/RunnerLastRun'
681
+ - type : object
682
+ description : the last Runner Run for the parent of this Runner
683
+ rootLastRun :
684
+ allOf :
685
+ - $ref : ' #/components/schemas/RunnerLastRun'
686
+ - type : object
687
+ description : the last Runner Run for the root (master) of Runner
675
688
validationStatus :
676
689
x-field-extra-annotation : " @com.redis.om.spring.annotations.Searchable"
677
690
allOf :
@@ -748,6 +761,21 @@ components:
748
761
required :
749
762
- cpu
750
763
- memory
764
+ RunnerLastRun :
765
+ type : object
766
+ properties :
767
+ runnerRunId :
768
+ type : string
769
+ description : the last Runner Run id
770
+ csmSimulationRun :
771
+ type : string
772
+ description : the last Cosmo Tech Simulation Run id
773
+ workflowId :
774
+ type : string
775
+ description : the last Workflow Id
776
+ workflowName :
777
+ type : string
778
+ description : the last Workflow name
751
779
RunnerRunTemplateParameterValue :
752
780
type : object
753
781
description : the value of a Solution Run Template parameter for a Runner
@@ -814,6 +842,8 @@ components:
814
842
type : string
815
843
readOnly : true
816
844
description : the Runner Data Download URL
845
+ state :
846
+ $ref : ' #/components/schemas/RunnerJobState'
817
847
RunnerDataDownloadJob :
818
848
type : object
819
849
description : Runner data download job
@@ -822,6 +852,23 @@ components:
822
852
type : string
823
853
readOnly : true
824
854
description : the Runner Data Download job identifier
855
+ RunnerJobState :
856
+ type : string
857
+ readOnly : true
858
+ description : the Runner job state
859
+ enum :
860
+ - Created
861
+ - Running
862
+ - Successful
863
+ - Failed
864
+ # PROD-7888 : When requesting the runner state right after a run has been submitted,
865
+ # the runner run service (e.g., Argo Workflow) might not have scheduled the run
866
+ # effectively yet.
867
+ # Furthermore, temporary communication errors might occur anytime when remotely
868
+ # fetching last runner run statuses.
869
+ - Unknown
870
+ # PROD-7420 : return data ingestion status
871
+ - DataIngestionInProgress
825
872
RunnerValidationStatus :
826
873
type : string
827
874
description : the validation status of the runner
@@ -878,6 +925,7 @@ components:
878
925
solutionName : Brewery Solution
879
926
runTemplateId : " hundred"
880
927
runTemplateName : Full simulation 100 steps
928
+ state : Running
881
929
ownerName : Bob
882
930
creationDate : " 2021-04-21T17:32:28Z"
883
931
lastUpdate : " 2021-04-21T17:32:28Z"
@@ -887,7 +935,11 @@ components:
887
935
- parameterId : prefix
888
936
varType : string
889
937
value : " "
890
- lastRunId : " run-bDMr5lM9Vp"
938
+ lastRun :
939
+ csmSimulationRun : " ae8d1959-7a71-48ec-9f33-3fae53358cf1"
940
+ runnerRunId : " SR-V9EYbbOE0"
941
+ workflowId : " c7cd3f15-8a3b-4bcd-b3ca-62ee24c13d67"
942
+ workflowName : " workflow-s-dwpxbzmdxn-zkvd7"
891
943
security :
892
944
default : " viewer"
893
945
accessControlList :
@@ -909,6 +961,7 @@ components:
909
961
solutionName : Brewery Solution
910
962
runTemplateId : " hundred"
911
963
runTemplateName : Full simulation 100 steps
964
+ state : Created
912
965
ownerName : Bob
913
966
creationDate : " 2021-04-21T17:32:28Z"
914
967
lastUpdate : " 2021-04-21T17:32:28Z"
@@ -936,6 +989,7 @@ components:
936
989
solutionName : Brewery Solution
937
990
runTemplateId : " hundred"
938
991
runTemplateName : Full simulation 100 steps
992
+ state : Running
939
993
ownerName : Bob
940
994
creationDate : " 2021-04-21T17:32:28Z"
941
995
lastUpdate : " 2021-04-21T17:32:28Z"
@@ -945,7 +999,11 @@ components:
945
999
- parameterId : prefix
946
1000
varType : string
947
1001
value : example
948
- lastRunId : " run-bDMr5lM9Vp"
1002
+ lastRun :
1003
+ csmSimulationRun : " ae8d1959-7a71-48ec-9f33-3fae53358cf1"
1004
+ runnerRunId : " SR-V9EYbbOE0"
1005
+ workflowId : " c7cd3f15-8a3b-4bcd-b3ca-62ee24c13d67"
1006
+ workflowName : " workflow-s-dwpxbzmdxn-zkvd7"
949
1007
security :
950
1008
default : " viewer"
951
1009
accessControlList :
@@ -963,6 +1021,7 @@ components:
963
1021
solutionName : Brewery Solution
964
1022
runTemplateId : " hundred"
965
1023
runTemplateName : Full simulation 100 steps
1024
+ state : Failed
966
1025
ownerName : Alice
967
1026
creationDate : " 2021-04-21T17:32:28Z"
968
1027
lastUpdate : " 2021-04-21T17:32:28Z"
@@ -973,7 +1032,11 @@ components:
973
1032
varType : string
974
1033
value : " "
975
1034
inherited : true
976
- lastRunId : " run-bDMr5lM9Vp"
1035
+ lastRun :
1036
+ csmSimulationRun : " ae8d1959-7a71-48ec-9f33-3fae53358cf1"
1037
+ runnerRunId : " SR-V9EYbbOE0"
1038
+ workflowId : " c7cd3f15-8a3b-4bcd-b3ca-62ee24c13d67"
1039
+ workflowName : " workflow-s-dwpxbzmdxn-zkvd7"
977
1040
security :
978
1041
default : " viewer"
979
1042
accessControlList :
@@ -1000,6 +1063,7 @@ components:
1000
1063
solutionName : Brewery Solution
1001
1064
runTemplateId : " hundred"
1002
1065
runTemplateName : Full simulation 100 steps
1066
+ state : Created
1003
1067
ownerName : Bob
1004
1068
creationDate : " 2021-04-21T17:32:28Z"
1005
1069
lastUpdate : " 2021-04-21T17:32:28Z"
@@ -1038,6 +1102,7 @@ components:
1038
1102
- reference
1039
1103
ownerId : " 1"
1040
1104
worskspaceId : " 1"
1105
+ state : Created
1041
1106
creationDate : " 2021-04-21T17:32:28Z"
1042
1107
lastUpdate : " 2021-04-21T17:32:28Z"
1043
1108
ownerName : Alice
@@ -1064,6 +1129,7 @@ components:
1064
1129
parentId : " 1"
1065
1130
ownerId : " 1"
1066
1131
worskspaceId : " 1"
1132
+ state : Running
1067
1133
creationDate : " 2021-04-21T17:32:28Z"
1068
1134
lastUpdate : " 2021-04-21T17:32:28Z"
1069
1135
ownerName : Alice
@@ -1076,7 +1142,11 @@ components:
1076
1142
varType : string
1077
1143
value : " "
1078
1144
inherited : true
1079
- lastRunId : " run-bDMr5lM9Vp"
1145
+ lastRun :
1146
+ csmSimulationRun : " ae8d1959-7a71-48ec-9f33-3fae53358cf1"
1147
+ runnerRunId : " SR-V9EYbbOE0"
1148
+ workflowId : " c7cd3f15-8a3b-4bcd-b3ca-62ee24c13d67"
1149
+ workflowName : " workflow-s-dwpxbzmdxn-zkvd7"
1080
1150
security :
1081
1151
default : " viewer"
1082
1152
accessControlList :
@@ -1090,6 +1160,7 @@ components:
1090
1160
parentId : " 1"
1091
1161
ownerId : " 2"
1092
1162
worskspaceId : " 1"
1163
+ state : Failed
1093
1164
creationDate : " 2021-04-21T17:32:28Z"
1094
1165
lastUpdate : " 2021-04-21T17:32:28Z"
1095
1166
ownerName : Alice
@@ -1102,7 +1173,11 @@ components:
1102
1173
varType : string
1103
1174
value : " "
1104
1175
inherited : true
1105
- lastRunId : " run-bDMr5lM9Vp"
1176
+ lastRun :
1177
+ csmSimulationRun : " ae8d1959-7a71-48ec-9f33-3fae53358cf1"
1178
+ runnerRunId : " SR-V9EYbbOE0"
1179
+ workflowId : " c7cd3f15-8a3b-4bcd-b3ca-62ee24c13d67"
1180
+ workflowName : " workflow-s-dwpxbzmdxn-zkvd7"
1106
1181
security :
1107
1182
default : " viewer"
1108
1183
accessControlList :
0 commit comments