Skip to content

Commit e52f9df

Browse files
authored
fix: add callback_api_version for Paho MQTT v2.x compatibility (#616)
1 parent 00fc66b commit e52f9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/python/flame/backend/mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def configure(self, broker: str, job_id: str, task_id: str):
125125
self._job_id = job_id
126126
self._id = task_id
127127

128-
self._mqtt_client = mqtt.Client(self._id, protocol=MQTTv5)
128+
self._mqtt_client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2, self._id, protocol=MQTTv5)
129129

130130
self._health_check_topic = f"{MQTT_TOPIC_PREFIX}/{self._job_id}"
131131

0 commit comments

Comments
 (0)