Log career metrics runtime
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
spsaefan
2026-06-16 16:27:31 +02:00
parent a7d41237eb
commit dc573433d9
+6
View File
@@ -389,7 +389,13 @@ def get_person_by_id(
raise HTTPException(status_code=500, detail=f"Elasticsearch error: {str(e)}")
author = util.get_persons_data(hit)
start_time = time.time()
career_metrics = get_career_metrics_for_author(author_id)
elapsed_time = time.time() - start_time
logger.info(
f"Career metrics calculation for author {author_id} took {elapsed_time:.2f} seconds"
)
custom_author = CustomAuthor(
**author.model_dump(),