Skip to content

Commit 1cc1552

Browse files
Hotfix mqtt timeout inference constant after refactoring.
1 parent 9296884 commit 1cc1552

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/fedml/computing/scheduler/model_scheduler/device_mqtt_inference_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_mqtt_inference_with_request(
105105
only_do_health_check=only_do_health_check, timeout=timeout
106106
)
107107

108-
allowed_inference_timeout = SchedulerConstants.MQTT_INFERENCE_TIMEOUT if timeout is None else timeout
108+
allowed_inference_timeout = timeout if timeout else -1
109109
sleep_time_interval = 0.05
110110
total_sleep_time = 0
111111
while True:

0 commit comments

Comments
 (0)