Преглед на файлове

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

Fabio De Simone преди 1 година
родител
ревизия
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