We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e0340 commit ee1338cCopy full SHA for ee1338c
stgrid2area/processor.py
@@ -552,8 +552,9 @@ def run(self, client: Client = None) -> dict:
552
del futures, tasks
553
gc.collect()
554
555
- # Force garbage collection on all workers
+ # Force garbage collection on all workers and the scheduler
556
client.run(gc.collect)
557
+ client.run_on_scheduler(gc.collect)
558
559
except Exception as e:
560
self.logger.error(f"Error during batch {i}, stgrid {n_stgrid}: {e}")
0 commit comments