Skip to content

Commit

Permalink
logging clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
MDobransky committed Sep 27, 2024
1 parent b5b15ae commit 1020f55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rialto/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(

if self.date_from > self.date_until:
raise ValueError(f"Invalid date range from {self.date_from} until {self.date_until}")
logger.info(f"Running period from {self.date_from} until {self.date_until}")
logger.info(f"Running period set to: {self.date_from} - {self.date_until}")

def _execute(self, instance: Transformation, run_date: date, pipeline: PipelineConfig) -> DataFrame:
"""
Expand Down Expand Up @@ -285,6 +285,7 @@ def _run_pipeline(self, pipeline: PipelineConfig):

def __call__(self):
"""Execute pipelines"""
logger.info("Executing pipelines")
try:
if self.op:
selected = [p for p in self.config.pipelines if p.name == self.op]
Expand All @@ -297,3 +298,4 @@ def __call__(self):
finally:
print(self.tracker.records)
self.tracker.report(self.config.runner.mail)
logger.info("Execution finished")

0 comments on commit 1020f55

Please sign in to comment.