Fix user delete flow 2
This commit is contained in:
@@ -97,20 +97,6 @@ async def training_progress_websocket(
|
||||
setup_rabbitmq_consumer_for_job(job_id, tenant_id)
|
||||
)
|
||||
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# Send initial status
|
||||
try:
|
||||
initial_status = await get_current_job_status(job_id, tenant_id)
|
||||
if initial_status:
|
||||
await websocket.send_json({
|
||||
"type": "initial_status",
|
||||
"job_id": job_id,
|
||||
"data": initial_status
|
||||
})
|
||||
except Exception as e:
|
||||
logger.warning(f"Failed to send initial status: {e}")
|
||||
|
||||
last_activity = asyncio.get_event_loop().time()
|
||||
|
||||
while not training_completed:
|
||||
|
||||
Reference in New Issue
Block a user