Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Call existing function for getting recent revision from family (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingrismore authored Mar 12, 2024
1 parent 72c106f commit 1add0b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prefect_aws/workers/ecs_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def _get_or_register_task_definition(
):
family_name = task_definition.get("family", ECS_DEFAULT_FAMILY)
try:
task_definition_from_family = self._retrieve_task_definition_by_family(
task_definition_from_family = self._retrieve_task_definition(
logger, ecs_client, family_name
)
if task_definition_from_family and self._task_definitions_equal(
Expand All @@ -779,7 +779,7 @@ def _get_or_register_task_definition(
"taskDefinitionArn"
]
except Exception:
pass
cached_task_definition_arn = None

if not cached_task_definition_arn:
task_definition_arn = self._register_task_definition(
Expand Down

0 comments on commit 1add0b9

Please sign in to comment.