Spaces:
Sleeping
Sleeping
Your Name
commited on
Commit
·
26b48d4
1
Parent(s):
d58544a
Add verification message to confirm all 5 initialization tasks complete
Browse files
app.py
CHANGED
|
@@ -393,6 +393,14 @@ def run_parallel_initialization():
|
|
| 393 |
except Exception as e:
|
| 394 |
logging.error(f"❌ [{task_name}] Failed: {e} ({completed_count}/{total_tasks})")
|
| 395 |
print(f"❌ [{task_name}] Failed: {e} ({completed_count}/{total_tasks})")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
|
| 397 |
elapsed_time = time.time() - start_time
|
| 398 |
|
|
|
|
| 393 |
except Exception as e:
|
| 394 |
logging.error(f"❌ [{task_name}] Failed: {e} ({completed_count}/{total_tasks})")
|
| 395 |
print(f"❌ [{task_name}] Failed: {e} ({completed_count}/{total_tasks})")
|
| 396 |
+
|
| 397 |
+
# Verify all tasks completed
|
| 398 |
+
if completed_count < total_tasks:
|
| 399 |
+
logging.warning(f"⚠️ Only {completed_count}/{total_tasks} tasks completed. Some tasks may have timed out or failed silently.")
|
| 400 |
+
print(f"⚠️ Only {completed_count}/{total_tasks} tasks completed. Some tasks may have timed out or failed silently.")
|
| 401 |
+
else:
|
| 402 |
+
logging.info(f"✓ All {total_tasks} tasks completed")
|
| 403 |
+
print(f"✓ All {total_tasks} tasks completed")
|
| 404 |
|
| 405 |
elapsed_time = time.time() - start_time
|
| 406 |
|