]> git.ipfire.org Git - pakfire.git/commitdiff
hub: Log that we joined the queue
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Oct 2022 18:02:47 +0000 (18:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Oct 2022 18:02:47 +0000 (18:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/hub.py

index 4d47965e3dd841f87f729a2e776b19fb133364aa..79d5341fa381ba56fc550ad42775ba826180a58f 100644 (file)
@@ -400,9 +400,14 @@ class Hub(object):
                on_message_callback = functools.partial(
                        self._decode_json_message, job_received_callback)
 
-               return await self._request("GET", "/queue", websocket=True, ping=10,
+               # Join the queue
+               queue = await self._request("GET", "/queue", websocket=True, ping=10,
                        on_message_callback=on_message_callback)
 
+               log.debug("Joined the queue")
+
+               return queue
+
        @staticmethod
        def _decode_json_message(callback, message):
                """