Skip to content

Commit

Permalink
Revert defaulting worker id
Browse files Browse the repository at this point in the history
  • Loading branch information
damondouglas committed Dec 23, 2024
1 parent 33df29b commit 3636a3c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class WorkerIdInterceptor(grpc.UnaryUnaryClientInterceptor,
# the corresponding container changes.
# Unique worker Id for this worker.
_worker_id = os.environ.get('WORKER_ID')
if not _worker_id:
import uuid
_worker_id = str(uuid.uuid4())

def __init__(self, worker_id: Optional[str] = None) -> None:
if worker_id:
Expand Down

0 comments on commit 3636a3c

Please sign in to comment.