Skip to content

Commit 0d2e9ab

Browse files
author
Andrei Neagu
committed
update docs
1 parent 6975378 commit 0d2e9ab

File tree

1 file changed

+4
-4
lines changed
  • packages/service-library/src/servicelib/rabbitmq

1 file changed

+4
-4
lines changed

packages/service-library/src/servicelib/rabbitmq/_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ async def wait_till_rabbitmq_responsive(url: str) -> bool:
5353

5454

5555
def get_rabbitmq_client_unique_name(base_name: str) -> str:
56-
# NOTE: below prefix is guaranteed to change each time the preocess restarts
57-
# Why is this desiarable?
58-
# 1. the code base makes the above assumption, otherwise subcscribers and consumers do not work
59-
# 2. enables restartability of webserver during [re]deploys
56+
# NOTE: The prefix below will change every time the process restarts.
57+
# Why is this necessary?
58+
# 1. The codebase relies on this behavior; without it, subscribers and consumers will fail.
59+
# 2. It allows the web server to be restarted seamlessly during [re]deployments.
6060
prefix_create_time = f"{psutil.Process(os.getpid()).create_time()}".strip(".")[-6:]
6161

6262
return f"{base_name}_{socket.gethostname()}_{prefix_create_time}"

0 commit comments

Comments
 (0)