Skip to content

Commit

Permalink
Remove logging in SagemakerOrchestrator class
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Dec 20, 2024
1 parent 7d65a20 commit e2ecaf3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,23 +519,6 @@ def prepare_or_run_pipeline(
schedule_expr = f"cron({dt.minute} {dt.hour} {dt.day} {dt.month} ? {dt.year})"
next_execution = deployment.schedule.run_once_start_time

logger.info(
f"Creating EventBridge rule with schedule expression: {schedule_expr}\n"
f"Note: AWS EventBridge schedules are always executed in UTC timezone.\n"
+ (
f"First execution will occur at: {next_execution.strftime('%Y-%m-%d %H:%M:%S')} "
f"({next_execution.astimezone().tzinfo}) / "
f"{next_execution.astimezone(timezone.utc).strftime('%Y-%m-%d %H:%M:%S')} (UTC)"
if next_execution
else f"Using cron expression: {deployment.schedule.cron_expression}"
)
+ (
f" (and every {int(minutes)} minutes after)"
if deployment.schedule.interval_second
else ""
)
)

# Create IAM policy for EventBridge
iam_client = session.boto_session.client("iam")
role_name = self.config.execution_role.split("/")[
Expand Down

0 comments on commit e2ecaf3

Please sign in to comment.