Skip to content

Commit

Permalink
Suppress warnings for patch-version mismatch between worker and maste…
Browse files Browse the repository at this point in the history
…r (yes, I know this will break once we reach version 10.10 or X.100, but it was the simplest solution)
  • Loading branch information
cyberw committed Nov 3, 2021
1 parent bb19203 commit 74190c7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,9 +881,14 @@ def client_listener(self):
logger.error(f"An old (pre 2.0) worker tried to connect ({client_id}). That's not going to work.")
continue
elif msg.data != __version__ and msg.data != -1:
logger.warning(
f"A worker ({client_id}) running a different version ({msg.data}) connected, master version is {__version__}"
)
if msg.data[0:4] == __version__[0:4]:
logger.debug(
f"A worker ({client_id}) running a different patch version ({msg.data}) connected, master version is {__version__}"
)
else:
logger.warning(
f"A worker ({client_id}) running a different version ({msg.data}) connected, master version is {__version__}"
)
worker_node_id = msg.node_id
self.clients[worker_node_id] = WorkerNode(worker_node_id, heartbeat_liveness=HEARTBEAT_LIVENESS)
if self._users_dispatcher is not None:
Expand Down

0 comments on commit 74190c7

Please sign in to comment.