Skip to content

Commit

Permalink
Fix sagemaker
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Jan 24, 2025
1 parent c41c43e commit b8b5341
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import os
import re
from datetime import timezone
from datetime import datetime, timezone
from typing import (
TYPE_CHECKING,
Any,
Expand Down Expand Up @@ -64,7 +64,6 @@
from zenml.orchestrators.utils import get_orchestrator_run_name
from zenml.stack import StackValidator
from zenml.utils.env_utils import split_environment_variables
from zenml.utils.time_utils import utc_now

if TYPE_CHECKING:
from zenml.models import PipelineDeploymentResponse, PipelineRunResponse
Expand Down Expand Up @@ -554,7 +553,8 @@ def prepare_or_run_pipeline(
enabled=True,
)
next_execution = (
deployment.schedule.start_time or utc_now()
deployment.schedule.start_time
or datetime.now(timezone.utc)
) + deployment.schedule.interval_second
else:
# One-time schedule
Expand Down

0 comments on commit b8b5341

Please sign in to comment.