From 089a8bf95f93676ab988806b0e61f93134617ad8 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Tue, 19 Mar 2024 13:48:07 -0500 Subject: [PATCH] cast uuid -> str before len --- prefect_azure/workers/container_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prefect_azure/workers/container_instance.py b/prefect_azure/workers/container_instance.py index d2bcb5a..ac09fb7 100644 --- a/prefect_azure/workers/container_instance.py +++ b/prefect_azure/workers/container_instance.py @@ -568,7 +568,7 @@ async def run( if len(container_group_name) > 55: slugified_flow_name = slugify( flow.name, - max_length=55 - len(flow_run.id), + max_length=55 - len(str(flow_run.id)), regex_pattern=r"[^a-zA-Z0-9-]+", ) container_group_name = f"{slugified_flow_name}-{flow_run.id}"