@platforma-sdk/workflow-tengo 5.11.0 → 5.12.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 +20 -0
- package/dist/tengo/lib/exec.runcmd.lib.tengo +19 -4
- 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.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/dist/tengo/tpl/workflow.query-context-filter.plj.gz +0 -0
- package/package.json +2 -2
|
@@ -52,6 +52,7 @@ builder := func() {
|
|
|
52
52
|
cpuRequest := undefined
|
|
53
53
|
ramRequest := undefined
|
|
54
54
|
|
|
55
|
+
commandName := ""
|
|
55
56
|
cache := 0
|
|
56
57
|
inputCache := 0
|
|
57
58
|
nErrorLines := 200
|
|
@@ -582,6 +583,19 @@ builder := func() {
|
|
|
582
583
|
|
|
583
584
|
|
|
584
585
|
|
|
586
|
+
|
|
587
|
+
name: func(name) {
|
|
588
|
+
validation.assertType(name, "string", "exec.builder.name: name must be a string")
|
|
589
|
+
|
|
590
|
+
commandName = name
|
|
591
|
+
return self
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
585
599
|
nErrorLines: func(lines) {
|
|
586
600
|
ll.assert(
|
|
587
601
|
is_int(lines) && lines >= 0,
|
|
@@ -1022,6 +1036,12 @@ builder := func() {
|
|
|
1022
1036
|
|
|
1023
1037
|
|
|
1024
1038
|
|
|
1039
|
+
if commandName != "" {
|
|
1040
|
+
pureExecInputs.runOptions.name = commandName
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1025
1045
|
if typedArgSet || typedEnvSet {
|
|
1026
1046
|
pureExecInputs.runOptions.argsTyped = argsTyped
|
|
1027
1047
|
pureExecInputs.runOptions.envsTyped = envsTyped
|
|
@@ -148,11 +148,11 @@ _createAbstractRunCommandPlan := func(state, returnSelfFn) {
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
cmd: func(
|
|
152
|
-
if ll.isMap(
|
|
153
|
-
self.cmdTyped(
|
|
151
|
+
cmd: func(cmd) {
|
|
152
|
+
if ll.isMap(cmd) {
|
|
153
|
+
self.cmdTyped(cmd.type, cmd.value)
|
|
154
154
|
} else {
|
|
155
|
-
state.options.cmd = simpleArg(
|
|
155
|
+
state.options.cmd = simpleArg(cmd)
|
|
156
156
|
}
|
|
157
157
|
return returnSelfFn()
|
|
158
158
|
},
|
|
@@ -548,6 +548,7 @@ builder := func(workdir, ...initialState) {
|
|
|
548
548
|
cpu := undefined
|
|
549
549
|
ram := undefined
|
|
550
550
|
|
|
551
|
+
commandName := ""
|
|
551
552
|
stdout := "stdout.txt"
|
|
552
553
|
stderr := "stderr.txt"
|
|
553
554
|
nErrorLines := 200
|
|
@@ -558,6 +559,19 @@ builder := func(workdir, ...initialState) {
|
|
|
558
559
|
|
|
559
560
|
|
|
560
561
|
|
|
562
|
+
|
|
563
|
+
name: func(name) {
|
|
564
|
+
validation.assertType(name, "string", "runcmd.builder.name: name must be a string")
|
|
565
|
+
|
|
566
|
+
commandName = name
|
|
567
|
+
return self
|
|
568
|
+
},
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
561
575
|
allocation: func(value) {
|
|
562
576
|
validation.assertType(value, validation.reference, "runcmd.builder: allocation should be a valid reference")
|
|
563
577
|
allocation = value
|
|
@@ -744,6 +758,7 @@ builder := func(workdir, ...initialState) {
|
|
|
744
758
|
runRes.getField(_FIELD_CMD).set(cmdRes)
|
|
745
759
|
|
|
746
760
|
buildOptions := {
|
|
761
|
+
name: commandName,
|
|
747
762
|
queueName: queue,
|
|
748
763
|
errorLines: nErrorLines,
|
|
749
764
|
redirectStdout: stdout,
|
|
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.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@platforma-open/milaboratories.software-ptabler": "1.15.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@platforma-sdk/tengo-builder": "2.5.
|
|
25
|
+
"@platforma-sdk/tengo-builder": "2.5.6"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"type-check": "pl-tengo check",
|