@platforma-sdk/workflow-tengo 5.5.11 → 5.5.12
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 +32 -23
- 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 +1 -1
|
@@ -90,8 +90,8 @@ builder := func() {
|
|
|
90
90
|
stderrToValue := false
|
|
91
91
|
stderrToStdout := false
|
|
92
92
|
|
|
93
|
-
saveStdout :=
|
|
94
|
-
saveStderr :=
|
|
93
|
+
saveStdout := false
|
|
94
|
+
saveStderr := false
|
|
95
95
|
|
|
96
96
|
self = ll.toStrict({
|
|
97
97
|
|
|
@@ -862,25 +862,16 @@ builder := func() {
|
|
|
862
862
|
|
|
863
863
|
|
|
864
864
|
|
|
865
|
-
|
|
866
|
-
saveStdout =
|
|
865
|
+
saveStdout: func() {
|
|
866
|
+
saveStdout = true
|
|
867
867
|
return self
|
|
868
868
|
},
|
|
869
869
|
|
|
870
870
|
|
|
871
871
|
|
|
872
872
|
|
|
873
|
-
|
|
874
|
-
saveStderr =
|
|
875
|
-
return self
|
|
876
|
-
},
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
dontSaveStdoutOrStderr: func() {
|
|
882
|
-
saveStdout = false
|
|
883
|
-
saveStderr = false
|
|
873
|
+
saveStderr: func() {
|
|
874
|
+
saveStderr = true
|
|
884
875
|
return self
|
|
885
876
|
},
|
|
886
877
|
|
|
@@ -999,6 +990,8 @@ builder := func() {
|
|
|
999
990
|
|
|
1000
991
|
|
|
1001
992
|
getFile: func(fileName) {
|
|
993
|
+
ll.assert(sets.hasElement(filesToSave, fileName),
|
|
994
|
+
"file '%s' was not saved, add saveFile() call to the exec builder", fileName)
|
|
1002
995
|
return tpl.output("files", cache).getFutureInputField(fileName)
|
|
1003
996
|
},
|
|
1004
997
|
|
|
@@ -1009,6 +1002,8 @@ builder := func() {
|
|
|
1009
1002
|
|
|
1010
1003
|
|
|
1011
1004
|
getFileContent: func(fileName) {
|
|
1005
|
+
ll.assert(sets.hasElement(filesContentToSave, fileName),
|
|
1006
|
+
"file content '%s' was not saved, add saveFileContent() call to the exec builder", fileName)
|
|
1012
1007
|
return tpl.output("filesContent", cache).getFutureInputField(fileName)
|
|
1013
1008
|
},
|
|
1014
1009
|
|
|
@@ -1019,6 +1014,8 @@ builder := func() {
|
|
|
1019
1014
|
|
|
1020
1015
|
|
|
1021
1016
|
getFileStream: func(fileName) {
|
|
1017
|
+
ll.assert(sets.hasElement(filesToStream, fileName),
|
|
1018
|
+
"file stream '%s' was not saved, add streamFile() call to the exec builder", fileName)
|
|
1022
1019
|
return tpl.output("fileStreams", cache).getFutureInputField(fileName, true)
|
|
1023
1020
|
},
|
|
1024
1021
|
|
|
@@ -1029,6 +1026,8 @@ builder := func() {
|
|
|
1029
1026
|
|
|
1030
1027
|
|
|
1031
1028
|
getFileSet: func(fileSetName) {
|
|
1029
|
+
ll.assert(!is_undefined(fileSetsToSave[fileSetName]),
|
|
1030
|
+
"file set '%s' was not saved, add saveFileSet() call to the exec builder", fileSetName)
|
|
1032
1031
|
return tpl.output("fileSets", cache).getFutureInputField(fileSetName)
|
|
1033
1032
|
},
|
|
1034
1033
|
|
|
@@ -1039,10 +1038,14 @@ builder := func() {
|
|
|
1039
1038
|
|
|
1040
1039
|
|
|
1041
1040
|
getFileSetContent: func(fileSetName) {
|
|
1041
|
+
ll.assert(!is_undefined(fileSetsContentToSave[fileSetName]),
|
|
1042
|
+
"file set content '%s' was not saved, add saveFileSetContent() call to the exec builder", fileSetName)
|
|
1042
1043
|
return tpl.output("fileSetsContent", cache).getFutureInputField(fileSetName)
|
|
1043
1044
|
},
|
|
1044
1045
|
|
|
1045
1046
|
getProcessorResult: func(procName) {
|
|
1047
|
+
ll.assert(!is_undefined(wdProcessors[procName]),
|
|
1048
|
+
"processor result '%s' was not saved, add processWorkdir() call to the exec builder", procName)
|
|
1046
1049
|
return tpl.output("wdProcessors", cache).getFutureInputField(procName)
|
|
1047
1050
|
},
|
|
1048
1051
|
|
|
@@ -1050,6 +1053,8 @@ builder := func() {
|
|
|
1050
1053
|
|
|
1051
1054
|
|
|
1052
1055
|
getStdoutStream: func() {
|
|
1056
|
+
ll.assert(saveStdout,
|
|
1057
|
+
"stdout stream was not saved, add saveStdout() call to the exec builder")
|
|
1053
1058
|
return self.getFileStream(stdout)
|
|
1054
1059
|
},
|
|
1055
1060
|
|
|
@@ -1057,6 +1062,8 @@ builder := func() {
|
|
|
1057
1062
|
|
|
1058
1063
|
|
|
1059
1064
|
getStderrStream: func() {
|
|
1065
|
+
ll.assert(saveStderr,
|
|
1066
|
+
"stderr stream was not saved, add saveStderr() call to the exec builder")
|
|
1060
1067
|
return self.getFileStream(stderr)
|
|
1061
1068
|
},
|
|
1062
1069
|
|
|
@@ -1064,6 +1071,8 @@ builder := func() {
|
|
|
1064
1071
|
|
|
1065
1072
|
|
|
1066
1073
|
getStdoutFile: func() {
|
|
1074
|
+
ll.assert(saveStdout,
|
|
1075
|
+
"stdout file was not saved, add saveStdout() call to the exec builder")
|
|
1067
1076
|
return self.getFile(stdout)
|
|
1068
1077
|
},
|
|
1069
1078
|
|
|
@@ -1071,6 +1080,8 @@ builder := func() {
|
|
|
1071
1080
|
|
|
1072
1081
|
|
|
1073
1082
|
getStderrFile: func() {
|
|
1083
|
+
ll.assert(saveStderr,
|
|
1084
|
+
"stderr file was not saved, add saveStderr() call to the exec builder")
|
|
1074
1085
|
return self.getFile(stderr)
|
|
1075
1086
|
},
|
|
1076
1087
|
|
|
@@ -1078,20 +1089,18 @@ builder := func() {
|
|
|
1078
1089
|
|
|
1079
1090
|
|
|
1080
1091
|
getStdoutFileContent: func() {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
ll.panic("stdout was not saved as a content")
|
|
1092
|
+
ll.assert(stdoutToValue,
|
|
1093
|
+
"stdout file content was not saved, add saveStdoutContent() call to the exec builder")
|
|
1094
|
+
return self.getFileContent(stdout)
|
|
1085
1095
|
},
|
|
1086
1096
|
|
|
1087
1097
|
|
|
1088
1098
|
|
|
1089
1099
|
|
|
1090
1100
|
getStderrFileContent: func() {
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
ll.panic("stderr was not saved as a content")
|
|
1101
|
+
ll.assert(stderrToValue,
|
|
1102
|
+
"stderr file content was not saved, add saveStderrContent() call to the exec builder")
|
|
1103
|
+
return self.getFileContent(stderr)
|
|
1095
1104
|
}
|
|
1096
1105
|
}))
|
|
1097
1106
|
|
|
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
|