mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 16:08:51 +03:00
add ids to the return response of start_plotting (#7416)
* add ids to the return response of start_plotting * black formatting * Update chia/daemon/server.py Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com> * Update server.py updated a comment in order to get build actions to rerun Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
This commit is contained in:
parent
a7e3c23277
commit
9d59079bfa
@ -808,8 +808,10 @@ class WebSocketServer:
|
||||
}
|
||||
return response
|
||||
|
||||
ids: List[str] = []
|
||||
for k in range(count):
|
||||
id = str(uuid.uuid4())
|
||||
ids.append(id)
|
||||
config = {
|
||||
"id": id,
|
||||
"size": size,
|
||||
@ -830,7 +832,7 @@ class WebSocketServer:
|
||||
# notify GUI about new plot queue item
|
||||
self.state_changed(service_plotter, self.prepare_plot_state_message(PlotEvent.STATE_CHANGED, id))
|
||||
|
||||
# only first item can start when user selected serial plotting
|
||||
# only the first item can start when user selected serial plotting
|
||||
can_start_serial_plotting = k == 0 and self._is_serial_plotting_running(queue) is False
|
||||
|
||||
if parallel is True or can_start_serial_plotting:
|
||||
@ -842,6 +844,7 @@ class WebSocketServer:
|
||||
|
||||
response = {
|
||||
"success": True,
|
||||
"ids": ids,
|
||||
"service_name": service_name,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user