diff --git a/src/py/flwr/common/message.py b/src/py/flwr/common/message.py index 17a36285173f..ed3a9966edd3 100644 --- a/src/py/flwr/common/message.py +++ b/src/py/flwr/common/message.py @@ -358,8 +358,8 @@ def create_reply(self, content: RecordSet, ttl: float | None = None) -> Message: """ if ttl: warnings.warn( - "TTL in a Message's Metadata is not being used. Messages do not " - "expire. This behaviour will change in a future version of Flower", + "A custom TTL was set, but note that the SuperLink does not enforce the TTL yet." + "The SuperLink will start enforcing the TTL in a future version of Flower.", stacklevel=2, ) # If no TTL passed, use default for message creation (will update after diff --git a/src/py/flwr/server/driver/driver.py b/src/py/flwr/server/driver/driver.py index 8df0af592616..ef950cc3b0a6 100644 --- a/src/py/flwr/server/driver/driver.py +++ b/src/py/flwr/server/driver/driver.py @@ -125,8 +125,8 @@ def create_message( # pylint: disable=too-many-arguments _, run_id = self._get_grpc_driver_and_run_id() if ttl: warnings.warn( - "TTL in a Message's Metadata is not being used. Messages do not " - "expire. This behaviour will change in a future version of Flower", + "A custom TTL was set, but note that the SuperLink does not enforce the TTL yet." + "The SuperLink will start enforcing the TTL in a future version of Flower.", stacklevel=2, )