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

Fix logic to keep ACI deployment name within Azure character limit error #147

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prefect_azure/workers/container_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Loading