mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Refactor(harness): remove naive inline graph engine , unify graph execution under single pregel engine (#16608)
This commit is contained in:
@@ -87,7 +87,7 @@ type parallelItemResult struct {
|
||||
// sub is the already-compiled sub-graph to invoke per item.
|
||||
func NewParallelNodeFunc(
|
||||
key string,
|
||||
sub *CompiledGraph,
|
||||
sub *compiledGraph,
|
||||
opts ...ParallelOption,
|
||||
) (types.NodeFunc, error) {
|
||||
if key == "" {
|
||||
@@ -129,7 +129,7 @@ func NewParallelNodeFunc(
|
||||
func runParallel(
|
||||
ctx context.Context,
|
||||
key string,
|
||||
sub *CompiledGraph,
|
||||
sub *compiledGraph,
|
||||
items []interface{},
|
||||
options *parallelOptions,
|
||||
) (interface{}, error) {
|
||||
@@ -223,7 +223,7 @@ func runParallel(
|
||||
func fanOutItems(
|
||||
ctx context.Context,
|
||||
key string,
|
||||
sub *CompiledGraph,
|
||||
sub *compiledGraph,
|
||||
items []interface{},
|
||||
indices []int,
|
||||
options *parallelOptions,
|
||||
|
||||
Reference in New Issue
Block a user