Skip to content

Commit

Permalink
fix(data-pipeline): reduce time stamp decimal places in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Aug 28, 2024
1 parent 621a736 commit 7ff320c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-pipeline/src/data_pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def run(self, force=False):

stop = time.perf_counter()
elapsed = stop - start
logger.info("Finished %s in %dm%02ds", self._name, elapsed // 60, elapsed % 60)
logger.info("Finished %s in %.0fm%02.2fs", self._name, elapsed // 60, elapsed % 60)
else:
logger.info(f"Skipping {self._name}")

Expand Down Expand Up @@ -184,7 +184,7 @@ def run(self, force=False):
result.write(output_path, overwrite=True) # pylint: disable=unexpected-keyword-arg
stop = time.perf_counter()
elapsed = stop - start
logger.info(f"Finished {self._name} in {elapsed // 60}m{elapsed % 60:02}s")
logger.info(f"Finished {self._name} in {int(elapsed // 60)}m{elapsed % 60:.2f}s")
else:
logger.info(f"Skipping {self._name}")

Expand Down

0 comments on commit 7ff320c

Please sign in to comment.