Skip to content

Commit

Permalink
refactor: add deprecated use comments and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lxobr committed Dec 16, 2024
1 parent c55227c commit ad1b435
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cognee/api/v1/cognify/code_graph_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# NOTICE: This module contains deprecated functions.
# Use only the run_code_graph_pipeline function; all other functions are deprecated.
# Related issue: COG-906

import asyncio
import logging
from pathlib import Path
Expand Down Expand Up @@ -55,6 +59,7 @@ async def code_graph_pipeline(datasets: Union[str, list[str]] = None, user: User


async def run_pipeline(dataset: Dataset, user: User):
'''DEPRECATED: Use `run_code_graph_pipeline` instead. This function will be removed.'''
data_documents: list[Data] = await get_dataset_data(dataset_id = dataset.id)

document_ids_str = [str(document.id) for document in data_documents]
Expand Down

0 comments on commit ad1b435

Please sign in to comment.