From e2ecaf3dbd186d2a360a5fd885d213beb96ab8c2 Mon Sep 17 00:00:00 2001 From: Hamza Tahir Date: Fri, 20 Dec 2024 22:51:10 +0100 Subject: [PATCH] Remove logging in SagemakerOrchestrator class --- .../aws/orchestrators/sagemaker_orchestrator.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py b/src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py index 6e82623382..7413902984 100644 --- a/src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +++ b/src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py @@ -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("/")[