Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions mytonctrl/mytonctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def inject_globals(func):
module = AlertBotModule(ton, local)
module.add_console_commands(console)

console.AddItem("cleanup", inject_globals(cleanup_validator_db), local.translate("cleanup_cmd"))
console.AddItem("benchmark", inject_globals(run_benchmark), local.translate("benchmark_cmd"))
# console.AddItem("activate_ton_storage_provider", inject_globals(activate_ton_storage_provider), local.translate("activate_ton_storage_provider_cmd"))

Expand Down Expand Up @@ -403,12 +402,6 @@ def rollback_to_mtc1(local, ton, args):
local.exit()
#end define

def cleanup_validator_db(ton, args):
cleanup_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/cleanup.sh')
run_args = ["bash", cleanup_script_path]
exit_code = run_as_root(run_args)
#end define

def run_benchmark(ton, args):
timeout = 200
benchmark_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/benchmark.sh')
Expand Down
5 changes: 0 additions & 5 deletions mytonctrl/resources/translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,6 @@
"ru": "Отправить тестовое оповещение через Telegram Bot",
"zh_TW": "通過 Telegram Bot 發送測試警報"
},
"cleanup_cmd": {
"en": "Clean node old logs and temp files",
"ru": "Очистить старые логи и временные файлы ноды",
"zh_TW": "清理節點舊日誌和臨時文件"
},
"benchmark_cmd": {
"en": "Run benchmark",
"ru": "Запустить бенчмарк",
Expand Down
35 changes: 0 additions & 35 deletions mytonctrl/scripts/cleanup.sh

This file was deleted.