Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

流程节点输出没有name域,严重影响调试 #90

Open
bghuang opened this issue May 22, 2022 · 2 comments
Open

流程节点输出没有name域,严重影响调试 #90

bghuang opened this issue May 22, 2022 · 2 comments
Labels
question Further information is requested

Comments

@bghuang
Copy link

bghuang commented May 22, 2022

在代码中输出流程执行结果。

result = api.get_pipeline_states(runtime=runtime, root_id=pipeline["id"])

print(result.data)
在输出中缺失name条目,直接导致无法详细调试。

, 'ed8ca0822e6c3490192bee69c4f7c1e76': {'id': 'ed8ca0822e6c3490192bee69c4f7c1e76', 'state': 'FINISHED', 'root_id:': 'pe20b2e4e17674134924382e1985ba4f5', 'parent_id': 'pe20b2e4e17674134924382e1985ba4f5', 'version': 'vb8feada2bf0643e193bbd4d0dd5bb133', 'loop': 1, 'retry': 0, 'skip': False, 'error_ignorable': False, 'error_ignored': False, 'created_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 49657, tzinfo=), 'started_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 49196, tzinfo=), 'archived_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 113250, tzinfo=), 'children': {}
}
, 'e57a42788ab124478b895ace9229ce208': {'id': 'e57a42788ab124478b895ace9229ce208', 'state': 'FAILED', 'root_id:': 'pe20b2e4e17674134924382e1985ba4f5', 'parent_id': 'pe20b2e4e17674134924382e1985ba4f5', 'version': 'vc93a7f74531445fc9065a39c505be37b', 'loop': 1, 'retry': 0, 'skip': False, 'error_ignorable': False, 'error_ignored': False, 'created_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 147393, tzinfo=), 'started_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 147139, tzinfo=), 'archived_time': datetime.datetime(2022, 5, 22, 5, 10, 37, 166506, tzinfo=), 'children': {}

@bghuang
Copy link
Author

bghuang commented May 22, 2022

bamboo engine 版本

$ pip install bamboo-engine
Requirement already satisfied: bamboo-engine in /usr/local/lib/python3.8/dist-packages (1.4.0)
Requirement already satisfied: prometheus-client<1.0.0,>=0.9.0 in /usr/local/lib/python3.8/dist-packages (from bamboo-engine) (0.14.1)
Requirement already satisfied: mako<2.0,>=1.1.4 in /usr/local/lib/python3.8/dist-packages (from bamboo-engine) (1.2.0)
Requirement already satisfied: Werkzeug<2.0,>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from bamboo-engine) (1.0.1)
Requirement already satisfied: pyparsing<3.0,>=2.2.0 in /usr/local/lib/python3.8/dist-packages (from bamboo-engine) (2.4.7)
Requirement already satisfied: MarkupSafe>=0.9.2 in /usr/local/lib/python3.8/dist-packages (from mako<2.0,>=1.1.4->bamboo-engine) (2.1.1)

@homholueng
Copy link
Contributor

设计之初并不会在运行时中保存节点的name属性和流程的完整拓扑,推荐的做法是将 pipeline_tree 单独存储一份

@homholueng homholueng added the question Further information is requested label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants