Skip to content

Commit c3643a4

Browse files
committed
round with 2 digits
1 parent c418f08 commit c3643a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/neo4j_graphrag/experimental/pipeline/pipeline.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def run(
104104
res = await self.execute(context, inputs)
105105
end_time = default_timer()
106106
logger.debug(
107-
f"TASK FINISHED {self.name} in {round(end_time - start_time)}s res={prettify(res)}"
107+
f"TASK FINISHED {self.name} in {round(end_time - start_time, 2)}s res={prettify(res)}"
108108
)
109109
return res
110110

@@ -567,7 +567,9 @@ async def run(self, data: dict[str, Any]) -> PipelineResult:
567567
)
568568
raise e
569569
end_time = default_timer()
570-
logger.debug(f"PIPELINE FINISHED {run_id} in {round(end_time - start_time)}s")
570+
logger.debug(
571+
f"PIPELINE FINISHED {run_id} in {round(end_time - start_time, 2)}s"
572+
)
571573
return res
572574

573575
async def _run(self, run_id: str, data: dict[str, Any]) -> PipelineResult:

0 commit comments

Comments
 (0)