Skip to content

Commit

Permalink
Make Ingestion Status updated through api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinsws committed Sep 5, 2024
1 parent a9f6ec1 commit 201b4b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 79 deletions.
2 changes: 2 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from app.web.routers.health import router as health_router
from app.web.routers.pipelines import router as pipelines_router
from app.web.routers.webhooks import router as webhooks_router
from app.web.routers.ingestion_status import router as ingestion_status_router

import logging
from fastapi import FastAPI, Request, status
Expand Down Expand Up @@ -57,3 +58,4 @@ async def some_middleware(request: Request, call_next):
app.include_router(health_router)
app.include_router(pipelines_router)
app.include_router(webhooks_router)
app.include_router(ingestion_status_router)
2 changes: 1 addition & 1 deletion app/pipeline/lecture_ingestion_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
CapabilityRequestHandler,
RequirementList,
)
from ..web.status import IngestionStatusCallback
from ..web.status import ingestion_status_callback
from langchain_text_splitters import RecursiveCharacterTextSplitter

batch_update_lock = threading.Lock()
Expand Down
4 changes: 2 additions & 2 deletions app/web/routers/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from app.domain.ingestion.ingestion_pipeline_execution_dto import (
IngestionPipelineExecutionDto,
)
from ..status.IngestionStatusCallback import IngestionStatusCallback
from ..status.LecturesDeletionStatusCallback import LecturesDeletionStatusCallback
from ..status.ingestion_status_callback import IngestionStatusCallback
from ..status.lecture_deletion_status_callback import LecturesDeletionStatusCallback
from ...domain.ingestion.deletionPipelineExecutionDto import (
LecturesDeletionExecutionDto,
)
Expand Down
45 changes: 0 additions & 45 deletions app/web/status/IngestionStatusCallback.py

This file was deleted.

31 changes: 0 additions & 31 deletions app/web/status/LecturesDeletionStatusCallback.py

This file was deleted.

0 comments on commit 201b4b4

Please sign in to comment.