check if base new workflow works

This commit is contained in:
vasilije 2025-07-19 14:24:55 +02:00
parent f2e96d5c62
commit 1cd0fe0dcf

View file

@ -171,10 +171,10 @@ async def add(
""" """
# Determine which ingestion system to use # Determine which ingestion system to use
use_plugin_system = preferred_loaders is not None or loader_config is not None # use_plugin_system = preferred_loaders is not None or loader_config is not None
if use_plugin_system: # if use_plugin_system:
# Use new plugin-based ingestion system # # Use new plugin-based ingestion system
from cognee.tasks.ingestion.plugin_ingest_data import plugin_ingest_data from cognee.tasks.ingestion.plugin_ingest_data import plugin_ingest_data
tasks = [ tasks = [
@ -189,12 +189,12 @@ async def add(
loader_config, loader_config,
), ),
] ]
else: # else:
# Use existing ingestion system for backward compatibility # # Use existing ingestion system for backward compatibility
tasks = [ # tasks = [
Task(resolve_data_directories, include_subdirectories=True), # Task(resolve_data_directories, include_subdirectories=True),
Task(ingest_data, dataset_name, user, node_set, dataset_id), # Task(ingest_data, dataset_name, user, node_set, dataset_id),
] # ]
pipeline_run_info = None pipeline_run_info = None