mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
[Tech Debt] Use f-string for python/ray/*.py (#10268)
* In progress. * Done with critical path. * Modified cluster_utils.py and log_monitor.py * Addressed code review.
This commit is contained in:
+4
-3
@@ -116,9 +116,10 @@ class GlobalState:
|
||||
# Check to see if we timed out.
|
||||
if time.time() - start_time >= timeout:
|
||||
raise TimeoutError("Timed out while attempting to initialize the "
|
||||
"global state. num_redis_shards = {}, "
|
||||
"redis_shard_addresses = {}".format(
|
||||
num_redis_shards, redis_shard_addresses))
|
||||
"global state. "
|
||||
f"num_redis_shards = {num_redis_shards}, "
|
||||
"redis_shard_addresses = "
|
||||
f"{redis_shard_addresses}")
|
||||
|
||||
# Get the rest of the information.
|
||||
self.redis_clients = []
|
||||
|
||||
Reference in New Issue
Block a user