Update app.py
Browse files
app.py
CHANGED
|
@@ -337,7 +337,7 @@ def add_to_queue(student_id, R, Y, B):
|
|
| 337 |
# NOTE: Wait until the task's status becomes 'processing'
|
| 338 |
# This ensures we only yield "Running" when the backend actually starts the job.
|
| 339 |
while tasks_dict[(student_id, experiment_id)]["status"] == "queued":
|
| 340 |
-
time.sleep(
|
| 341 |
|
| 342 |
# Second yield: "Running" (happens only after status is 'processing')
|
| 343 |
yield {
|
|
|
|
| 337 |
# NOTE: Wait until the task's status becomes 'processing'
|
| 338 |
# This ensures we only yield "Running" when the backend actually starts the job.
|
| 339 |
while tasks_dict[(student_id, experiment_id)]["status"] == "queued":
|
| 340 |
+
time.sleep(20)
|
| 341 |
|
| 342 |
# Second yield: "Running" (happens only after status is 'processing')
|
| 343 |
yield {
|