Просмотр исходного кода

Merge branch 'dev' of https://github.com/tuanchris/dune-weaver into dev

Fabio De Simone 1 год назад
Родитель
Сommit
956e1e7348
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -390,7 +390,7 @@ def run_theta_rho_file(file_path, schedule_hours=None):
                             # Update execution progress with formatted ETA
                             execution_progress = (i + batch_size, total_coordinates, estimated_remaining_time)
                             break
-                        elif response.startswith("IGNORE"):  # Retry the previous batch
+                        elif response.startswith("IGNORE") and i != 0:  # Retry the previous batch
                             print("Received IGNORE. Resending the previous batch...")
                             # Calculate the previous batch indices
                             prev_start = max(0, i - batch_size)  # Ensure we don't go below 0