Skip to content

Commit

Permalink
use shortened uuid for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Potts committed Oct 24, 2023
1 parent 6dbbd04 commit f73ae15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metaflow/plugins/kubernetes/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import math
import os
import re
import secrets
import shlex
import time
from typing import Dict, List, Optional

import uuid
from uuid import uuid4

from metaflow import current, util
from metaflow.exception import MetaflowException
Expand Down Expand Up @@ -180,7 +180,7 @@ def create_job(
job = (
KubernetesClient()
.job(
generate_name="t-{entropy}".format(entropy=secrets.token_hex(2)),
generate_name="t-{uid}".format(uid=str(uuid4())[:3]),
namespace=namespace,
service_account=service_account,
secrets=secrets,
Expand Down

0 comments on commit f73ae15

Please sign in to comment.