@platforma-sdk/workflow-tengo 5.5.12 → 5.5.14
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.
- package/dist/tengo/lib/exec.lib.tengo +58 -36
- package/dist/tengo/lib/pframes.xsv-import-file.lib.tengo +1 -1
- package/dist/tengo/lib/workdir.save.lib.tengo +1 -0
- package/dist/tengo/tpl/annotations.compute.plj.gz +0 -0
- package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
- package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.workdir_type_name_extractor.plj.gz +0 -0
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.conda.create-env.plj.gz +0 -0
- package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
- package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-parquet-pcolumn-chunk.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/pt.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pt.workflow-run.plj.gz +0 -0
- package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
- package/package.json +2 -2
|
@@ -85,13 +85,13 @@ builder := func() {
|
|
|
85
85
|
|
|
86
86
|
stdout := "stdout.txt"
|
|
87
87
|
stderr := "stderr.txt"
|
|
88
|
-
|
|
89
|
-
stdoutToValue := false
|
|
90
|
-
stderrToValue := false
|
|
91
88
|
stderrToStdout := false
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
stdoutFile := false
|
|
90
|
+
stderrFile := false
|
|
91
|
+
stdoutStream := false
|
|
92
|
+
stderrStream := false
|
|
93
|
+
stdoutContent := false
|
|
94
|
+
stderrContent := false
|
|
95
95
|
|
|
96
96
|
self = ll.toStrict({
|
|
97
97
|
|
|
@@ -839,7 +839,7 @@ builder := func() {
|
|
|
839
839
|
|
|
840
840
|
|
|
841
841
|
saveStdoutContent: func() {
|
|
842
|
-
|
|
842
|
+
stdoutContent = true
|
|
843
843
|
return self
|
|
844
844
|
},
|
|
845
845
|
|
|
@@ -847,7 +847,7 @@ builder := func() {
|
|
|
847
847
|
|
|
848
848
|
|
|
849
849
|
saveStderrContent: func() {
|
|
850
|
-
|
|
850
|
+
stderrContent = true
|
|
851
851
|
return self
|
|
852
852
|
},
|
|
853
853
|
|
|
@@ -862,16 +862,32 @@ builder := func() {
|
|
|
862
862
|
|
|
863
863
|
|
|
864
864
|
|
|
865
|
-
|
|
866
|
-
|
|
865
|
+
saveStdoutFile: func() {
|
|
866
|
+
stdoutFile = true
|
|
867
|
+
return self
|
|
868
|
+
},
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
saveStderrFile: func() {
|
|
874
|
+
stderrFile = true
|
|
875
|
+
return self
|
|
876
|
+
},
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
saveStdoutStream: func() {
|
|
882
|
+
stdoutStream = true
|
|
867
883
|
return self
|
|
868
884
|
},
|
|
869
885
|
|
|
870
886
|
|
|
871
887
|
|
|
872
888
|
|
|
873
|
-
|
|
874
|
-
|
|
889
|
+
saveStderrStream: func() {
|
|
890
|
+
stderrStream = true
|
|
875
891
|
return self
|
|
876
892
|
},
|
|
877
893
|
|
|
@@ -884,18 +900,24 @@ builder := func() {
|
|
|
884
900
|
if stderrToStdout {
|
|
885
901
|
stderr = stdout
|
|
886
902
|
}
|
|
887
|
-
if
|
|
888
|
-
sets.add(filesToStream, stdout)
|
|
903
|
+
if stdoutFile {
|
|
889
904
|
sets.add(filesToSave, stdout)
|
|
890
905
|
}
|
|
891
|
-
if
|
|
892
|
-
sets.add(filesToStream, stderr)
|
|
906
|
+
if stderrFile {
|
|
893
907
|
sets.add(filesToSave, stderr)
|
|
894
908
|
}
|
|
895
|
-
if
|
|
909
|
+
if stdoutStream {
|
|
910
|
+
sets.add(filesToSave, stdout)
|
|
911
|
+
sets.add(filesToStream, stdout)
|
|
912
|
+
}
|
|
913
|
+
if stderrStream {
|
|
914
|
+
sets.add(filesToSave, stderr)
|
|
915
|
+
sets.add(filesToStream, stderr)
|
|
916
|
+
}
|
|
917
|
+
if stdoutContent {
|
|
896
918
|
sets.add(filesContentToSave, stdout)
|
|
897
919
|
}
|
|
898
|
-
if
|
|
920
|
+
if stderrContent {
|
|
899
921
|
sets.add(filesContentToSave, stderr)
|
|
900
922
|
}
|
|
901
923
|
|
|
@@ -1003,7 +1025,7 @@ builder := func() {
|
|
|
1003
1025
|
|
|
1004
1026
|
getFileContent: func(fileName) {
|
|
1005
1027
|
ll.assert(sets.hasElement(filesContentToSave, fileName),
|
|
1006
|
-
"file
|
|
1028
|
+
"file '%s' content was not saved, add saveFileContent() call to the exec builder", fileName)
|
|
1007
1029
|
return tpl.output("filesContent", cache).getFutureInputField(fileName)
|
|
1008
1030
|
},
|
|
1009
1031
|
|
|
@@ -1015,7 +1037,7 @@ builder := func() {
|
|
|
1015
1037
|
|
|
1016
1038
|
getFileStream: func(fileName) {
|
|
1017
1039
|
ll.assert(sets.hasElement(filesToStream, fileName),
|
|
1018
|
-
"file
|
|
1040
|
+
"file '%s' stream was not saved, add streamFile() call to the exec builder", fileName)
|
|
1019
1041
|
return tpl.output("fileStreams", cache).getFutureInputField(fileName, true)
|
|
1020
1042
|
},
|
|
1021
1043
|
|
|
@@ -1039,13 +1061,13 @@ builder := func() {
|
|
|
1039
1061
|
|
|
1040
1062
|
getFileSetContent: func(fileSetName) {
|
|
1041
1063
|
ll.assert(!is_undefined(fileSetsContentToSave[fileSetName]),
|
|
1042
|
-
"file set
|
|
1064
|
+
"file set '%s' content was not saved, add saveFileSetContent() call to the exec builder", fileSetName)
|
|
1043
1065
|
return tpl.output("fileSetsContent", cache).getFutureInputField(fileSetName)
|
|
1044
1066
|
},
|
|
1045
1067
|
|
|
1046
1068
|
getProcessorResult: func(procName) {
|
|
1047
1069
|
ll.assert(!is_undefined(wdProcessors[procName]),
|
|
1048
|
-
"processor
|
|
1070
|
+
"processor '%s' result was not saved, add processWorkdir() call to the exec builder", procName)
|
|
1049
1071
|
return tpl.output("wdProcessors", cache).getFutureInputField(procName)
|
|
1050
1072
|
},
|
|
1051
1073
|
|
|
@@ -1053,8 +1075,8 @@ builder := func() {
|
|
|
1053
1075
|
|
|
1054
1076
|
|
|
1055
1077
|
getStdoutStream: func() {
|
|
1056
|
-
ll.assert(
|
|
1057
|
-
"stdout stream was not saved, add
|
|
1078
|
+
ll.assert(stdoutStream,
|
|
1079
|
+
"stdout stream was not saved, add saveStdoutStream() call to the exec builder")
|
|
1058
1080
|
return self.getFileStream(stdout)
|
|
1059
1081
|
},
|
|
1060
1082
|
|
|
@@ -1062,8 +1084,8 @@ builder := func() {
|
|
|
1062
1084
|
|
|
1063
1085
|
|
|
1064
1086
|
getStderrStream: func() {
|
|
1065
|
-
ll.assert(
|
|
1066
|
-
"stderr stream was not saved, add
|
|
1087
|
+
ll.assert(stderrStream,
|
|
1088
|
+
"stderr stream was not saved, add saveStderrStream() call to the exec builder")
|
|
1067
1089
|
return self.getFileStream(stderr)
|
|
1068
1090
|
},
|
|
1069
1091
|
|
|
@@ -1071,8 +1093,8 @@ builder := func() {
|
|
|
1071
1093
|
|
|
1072
1094
|
|
|
1073
1095
|
getStdoutFile: func() {
|
|
1074
|
-
ll.assert(
|
|
1075
|
-
"stdout file was not saved, add
|
|
1096
|
+
ll.assert(stdoutFile,
|
|
1097
|
+
"stdout file was not saved, add saveStdoutFile() call to the exec builder")
|
|
1076
1098
|
return self.getFile(stdout)
|
|
1077
1099
|
},
|
|
1078
1100
|
|
|
@@ -1080,26 +1102,26 @@ builder := func() {
|
|
|
1080
1102
|
|
|
1081
1103
|
|
|
1082
1104
|
getStderrFile: func() {
|
|
1083
|
-
ll.assert(
|
|
1084
|
-
"stderr file was not saved, add
|
|
1105
|
+
ll.assert(stderrFile,
|
|
1106
|
+
"stderr file was not saved, add saveStderrFile() call to the exec builder")
|
|
1085
1107
|
return self.getFile(stderr)
|
|
1086
1108
|
},
|
|
1087
1109
|
|
|
1088
1110
|
|
|
1089
1111
|
|
|
1090
1112
|
|
|
1091
|
-
|
|
1092
|
-
ll.assert(
|
|
1093
|
-
"stdout
|
|
1113
|
+
getStdoutContent: func() {
|
|
1114
|
+
ll.assert(stdoutContent,
|
|
1115
|
+
"stdout content was not saved, add saveStdoutContent() call to the exec builder")
|
|
1094
1116
|
return self.getFileContent(stdout)
|
|
1095
1117
|
},
|
|
1096
1118
|
|
|
1097
1119
|
|
|
1098
1120
|
|
|
1099
1121
|
|
|
1100
|
-
|
|
1101
|
-
ll.assert(
|
|
1102
|
-
"stderr
|
|
1122
|
+
getStderrContent: func() {
|
|
1123
|
+
ll.assert(stderrContent,
|
|
1124
|
+
"stderr content was not saved, add saveStderrContent() call to the exec builder")
|
|
1103
1125
|
return self.getFileContent(stderr)
|
|
1104
1126
|
}
|
|
1105
1127
|
}))
|
|
@@ -135,6 +135,7 @@ builder := func(wdBefore) {
|
|
|
135
135
|
for fName, _ in cRules {
|
|
136
136
|
rules = append(rules, getContentSaveRule(fName))
|
|
137
137
|
}
|
|
138
|
+
ll.assert(len(rules) > 0, "list of save rules is empty, WorkdirSave action is useless")
|
|
138
139
|
|
|
139
140
|
super.getField(_RULES_FIELD).set(
|
|
140
141
|
smart.createValueResource(
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.14",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@milaboratories/software-pframes-conv": "2.2.9",
|
|
20
20
|
"@platforma-open/milaboratories.software-small-binaries": "^1.15.23",
|
|
21
|
-
"@platforma-open/milaboratories.software-ptabler": "1.13.
|
|
21
|
+
"@platforma-open/milaboratories.software-ptabler": "1.13.4",
|
|
22
22
|
"@platforma-open/milaboratories.software-ptexter": "1.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|