refactor: improve clarity of subscriber startup process in message_queue.py

Updated comment to specify that the subscriber starts in the background, enhancing code readability and understanding of the asynchronous behavior.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-08-03 02:48:55 +08:00
parent 9283e52e48
commit 95b6560ffd

View File

@ -19,9 +19,9 @@ def register(app):
)
print("Registered deployment heartbeat processor")
# Start the subscriber
# Start the subscriber in the background
loop = asyncio.get_running_loop()
await loop.create_task(
loop.create_task(
app.deployment_heartbeat_subscriber.subscribe(max_retries=5, event_loop=loop)
)
print("Started deployment heartbeat subscriber")