explicitly call cleanup when cleaning backtest
This commit is contained in:
parent
c9498d0117
commit
45b328af2e
@ -172,6 +172,7 @@ def api_delete_backtest(ws_mode=Depends(is_webserver_mode)):
|
|||||||
"status_msg": "Backtest running",
|
"status_msg": "Backtest running",
|
||||||
}
|
}
|
||||||
if ApiServer._bt:
|
if ApiServer._bt:
|
||||||
|
ApiServer._bt.cleanup()
|
||||||
del ApiServer._bt
|
del ApiServer._bt
|
||||||
ApiServer._bt = None
|
ApiServer._bt = None
|
||||||
del ApiServer._bt_data
|
del ApiServer._bt_data
|
||||||
|
Loading…
Reference in New Issue
Block a user