Skip to content

Commit

Permalink
MNT: production_criterion: +return code
Browse files Browse the repository at this point in the history
  • Loading branch information
xianxs committed Mar 6, 2023
1 parent d38de68 commit 89f99ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions production_criterion.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ QI_HOME=${HOME}/qi_conf
3. ignore_miss_datas: 是否(强制)忽略数据缺失


- return code 函数返回码
用于判断函数正常异常, 一般返回有

1. bool类型: True/False/Exception
2. int类型: 0(正常), 非0(异常)


- cmd 调用脚本

1. 调用该任务的bash脚本, 若是python脚本, 推荐在函数入口使用click封装, 这样调用(传参)时与bash脚本一致
Expand All @@ -99,4 +106,5 @@ flowchart LR
A[start] --> B[sleeper] --> C[input sensor] --> D[cmd task] --> E[output sensor] --> F[end]
D --retry--> D
```

0 comments on commit 89f99ae

Please sign in to comment.