Skip to content

Commit

Permalink
feature: eri新增批量获取节点数据接口
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Nov 23, 2022
1 parent 1f3956a commit 28adec9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion bamboo_engine/eri/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# plugin interface

__version__ = "7.0.0"
__version__ = "7.1.0"


def version():
Expand Down Expand Up @@ -1204,6 +1204,17 @@ def get_data(self, node_id: str) -> Data:
:rtype: Data
"""

@abstractmethod
def get_batch_data(self, node_ids: List[str]) -> Dict[str, Data]:
"""
批量获取节点数据对象
:param node_ids: 节点 ID 列表
:type node_ids: List[str]
:return: 节点数据对象字典 node_id: Data
:rtype: dict
"""

@abstractmethod
def get_data_inputs(self, node_id: str) -> Dict[str, DataInput]:
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bamboo-engine"
version = "2.5.3"
version = "2.6.0"
description = "Bamboo-engine is a general-purpose workflow engine"
authors = ["homholueng <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 28adec9

Please sign in to comment.