File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/service-library/src/servicelib/rabbitmq Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ async def wait_till_rabbitmq_responsive(url: str) -> bool:
5353
5454
5555def 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 } "
You can’t perform that action at this time.
0 commit comments