One-time unit running#

You can use unit-run once commands to perform a one-time unit running with a parameter group derived from a json-str or a json file

Use -j or --json-str to pass a json-str as a parameter group to input the function#

unit-run once test.py y -j "[1, 2]"
Running the target unit 'y' from test.py...
Running complete, time consuming: 0.0 s.

**********Running Result**********
-1
**********Running Result**********

Use -f/--file to pass a parameter group from a json file#

Note

Remember, we have already created the parameter group json file.

Listing 4 manual_p_group1.json#
[
    10, 0
]

Normally, it can be generated automatically by other script or by this CTL tool.

unit-run once test.py y -f manual_p_group1.json
Running the target unit 'y' from test.py...
Running complete, time consuming: 0.0 s.

**********Running Result**********
9
**********Running Result**********