Start plotting the next valid item in the queue, not the last (#9205)

This commit is contained in:
Jeff 2021-11-09 13:43:35 -08:00 committed by GitHub
parent 9051fc168a
commit c889d08756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -833,6 +833,7 @@ class WebSocketServer:
for item in self.plots_queue:
if item["queue"] == queue and item["state"] is PlotState.SUBMITTED and item["parallel"] is False:
next_plot_id = item["id"]
break
if next_plot_id is not None:
loop.create_task(self._start_plotting(next_plot_id, loop, queue))