@platforma-sdk/workflow-tengo 4.7.4 → 4.8.0
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 +45 -0
- package/dist/tengo/lib/feats.lib.tengo +9 -2
- package/dist/tengo/lib/pframes.xsv-builder.lib.tengo +6 -5
- package/dist/tengo/lib/render.lib.tengo +6 -1
- 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/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.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-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.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/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
|
@@ -221,6 +221,51 @@ builder := func() {
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
224
269
|
setQueue: func(newQueue) {
|
|
225
270
|
queue = newQueue
|
|
226
271
|
return self
|
|
@@ -36,8 +36,15 @@ export ll.toStrict({
|
|
|
36
36
|
|
|
37
37
|
pureFutureFields: _isEnabled("pureFutureFields") || _api >= 1, // 'pure' future fields magic that provides deduplication
|
|
38
38
|
commandExpressions: _isEnabled("commandExpressions") || _api >= 2, // rich expressions in command arguments ( {{ system.ram_bytes / 20 }} )
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
workdirLimits: true,
|
|
44
|
+
computeLimits: true,
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
serviceFields: _isEnabled("serviceFields"),
|
|
41
48
|
|
|
42
49
|
|
|
43
50
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
ll := import("@platforma-sdk/workflow-tengo:ll")
|
|
2
2
|
maps := import("@platforma-sdk/workflow-tengo:maps")
|
|
3
3
|
strings := import("@platforma-sdk/workflow-tengo:strings")
|
|
4
|
+
text := import("text")
|
|
4
5
|
pSpec := import("@platforma-sdk/workflow-tengo:pframes.spec")
|
|
5
6
|
pBuilder := import("@platforma-sdk/workflow-tengo:pframes.builder")
|
|
6
7
|
xsv := import("@platforma-sdk/workflow-tengo:pframes.xsv")
|
|
@@ -44,15 +45,15 @@ xsvFileBuilder := func(xsvType) {
|
|
|
44
45
|
processedBaseKeys := {}
|
|
45
46
|
|
|
46
47
|
for key, value in flatFrame {
|
|
47
|
-
if
|
|
48
|
-
baseKey :=
|
|
48
|
+
if text.has_suffix(key, ".spec") {
|
|
49
|
+
baseKey := text.trim_suffix(key, ".spec")
|
|
49
50
|
if is_undefined(parsedColumns[baseKey]) {
|
|
50
51
|
parsedColumns[baseKey] = { key: baseKey }
|
|
51
52
|
}
|
|
52
53
|
parsedColumns[baseKey].spec = value
|
|
53
54
|
processedBaseKeys[baseKey] = true
|
|
54
|
-
} else if
|
|
55
|
-
baseKey :=
|
|
55
|
+
} else if text.has_suffix(key, ".data") {
|
|
56
|
+
baseKey := text.trim_suffix(key, ".data")
|
|
56
57
|
if is_undefined(parsedColumns[baseKey]) {
|
|
57
58
|
parsedColumns[baseKey] = { key: baseKey }
|
|
58
59
|
}
|
|
@@ -457,7 +458,7 @@ xsvFileBuilder := func(xsvType) {
|
|
|
457
458
|
|
|
458
459
|
isFlatFrame := false
|
|
459
460
|
for k, _ in item {
|
|
460
|
-
if
|
|
461
|
+
if text.has_suffix(k, ".spec") || text.has_suffix(k, ".data") {
|
|
461
462
|
isFlatFrame = true
|
|
462
463
|
break
|
|
463
464
|
}
|
|
@@ -11,6 +11,7 @@ oop := import("@platforma-sdk/workflow-tengo:oop")
|
|
|
11
11
|
tx := import("tx")
|
|
12
12
|
times := import("times")
|
|
13
13
|
maps := import("@platforma-sdk/workflow-tengo:maps")
|
|
14
|
+
feats := import("@platforma-sdk/workflow-tengo:feats")
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
_SUBSCRIPTION_FIELD := "subscription"
|
|
@@ -55,7 +56,11 @@ createUniversal := func(tpl, isEph, inputs, ...opts) {
|
|
|
55
56
|
}
|
|
56
57
|
for name, value in serviceInputs {
|
|
57
58
|
if !is_undefined(value) {
|
|
58
|
-
|
|
59
|
+
if feats.serviceFields {
|
|
60
|
+
inputsMap.addService(name, value)
|
|
61
|
+
} else {
|
|
62
|
+
inputsMap.add(name, value)
|
|
63
|
+
}
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
66
|
|
|
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
|