From 2ae275eb28a4a4cd56cfce952406ea6fe452c917 Mon Sep 17 00:00:00 2001 From: Elliot Gunton Date: Fri, 10 Jan 2025 14:35:08 +0000 Subject: [PATCH] Fix format/lint Signed-off-by: Elliot Gunton --- src/hera/workflows/_mixins.py | 2 +- src/hera/workflows/cron_workflow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hera/workflows/_mixins.py b/src/hera/workflows/_mixins.py index 6b3bd8e5..a89051c0 100644 --- a/src/hera/workflows/_mixins.py +++ b/src/hera/workflows/_mixins.py @@ -32,6 +32,7 @@ Artifact as ModelArtifact, ArtifactLocation, ContainerPort, + ContainerResizePolicy, ContinueOn, EnvFromSource, EnvVar, @@ -64,7 +65,6 @@ VolumeDevice, VolumeMount, ) -from hera.workflows.models import ContainerResizePolicy from hera.workflows.parameter import Parameter from hera.workflows.protocol import Templatable from hera.workflows.resources import Resources diff --git a/src/hera/workflows/cron_workflow.py b/src/hera/workflows/cron_workflow.py index a29bf529..0d4f05e7 100644 --- a/src/hera/workflows/cron_workflow.py +++ b/src/hera/workflows/cron_workflow.py @@ -82,7 +82,7 @@ class CronWorkflow(Workflow): starting_deadline_seconds: Annotated[Optional[int], _CronWorkflowModelMapper("spec.starting_deadline_seconds")] = ( None ) - stop_strategy: Annotated[Optional[StopStrategy], _CronWorkflowModelMapper("spec.stop_strategy")] + stop_strategy: Annotated[Optional[StopStrategy], _CronWorkflowModelMapper("spec.stop_strategy")] = None successful_jobs_history_limit: Annotated[ Optional[int], _CronWorkflowModelMapper("spec.successful_jobs_history_limit") ] = None