Skip to content

Commit

Permalink
add test_time endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Jul 29, 2024
1 parent 6b8fe33 commit 35eca42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/routes/pride.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import logging.config
import os
import time
from math import ceil
from typing import List, Annotated, Union

Expand Down Expand Up @@ -80,6 +81,11 @@ async def health(session: Session = Depends(get_session)):
'db_status': db_status}


@pride_router.get("/test_time")
async def test_time():
time.sleep(65)
return 1

@pride_router.post("/parse", tags=["Admin"])
async def parse(px_accession: str, temp_dir: str | None = None, dont_delete: bool = False,
api_key: str = Security(get_api_key)):
Expand Down

0 comments on commit 35eca42

Please sign in to comment.