mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-01-07 07:24:25 +01:00
(feat) refactor bot_orchestration
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from glob import glob
|
||||
from types import SimpleNamespace
|
||||
|
||||
from commlib.exceptions import RPCClientTimeoutError
|
||||
@@ -12,7 +11,9 @@ from docker_manager import DockerManager
|
||||
from hbotrc import BotCommands
|
||||
|
||||
from ui_components.bot_performance_card import BotPerformanceCard
|
||||
from ui_components.bots_file_explorer import BotsFileExplorer
|
||||
from ui_components.dashboard import Dashboard
|
||||
from ui_components.editor import Editor
|
||||
from ui_components.exited_bot_card import ExitedBotCard
|
||||
from utils.st_utils import initialize_st_page
|
||||
|
||||
@@ -33,6 +34,10 @@ if "new_bot_name" not in st.session_state:
|
||||
if "selected_strategy" not in st.session_state:
|
||||
st.session_state.selected_strategy = None
|
||||
|
||||
if "editor_tabs" not in st.session_state:
|
||||
st.session_state.editor_tabs = {}
|
||||
|
||||
|
||||
def manage_broker_container():
|
||||
if st.session_state.is_broker_running:
|
||||
docker_manager.stop_container("hummingbot-broker")
|
||||
|
||||
Reference in New Issue
Block a user