fix(backend): prevent docker sync call from blocking asyncio event loop
This commit is contained in:
@@ -127,7 +127,8 @@ async def monitor_containers():
|
||||
|
||||
while True:
|
||||
try:
|
||||
for c in client.containers.list(all=True):
|
||||
containers = await asyncio.to_thread(client.containers.list, all=True)
|
||||
for c in containers:
|
||||
current_status = c.status
|
||||
if c.id in previous_states:
|
||||
prev_status = previous_states[c.id]
|
||||
|
||||
Reference in New Issue
Block a user