Skip to content

Commit 9de0be6

Browse files
committed
remove cleanup cmd
1 parent 5a87df0 commit 9de0be6

File tree

3 files changed

+0
-47
lines changed

3 files changed

+0
-47
lines changed

mytonctrl/mytonctrl.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def inject_globals(func):
140140
module = AlertBotModule(ton, local)
141141
module.add_console_commands(console)
142142

143-
console.AddItem("cleanup", inject_globals(cleanup_validator_db), local.translate("cleanup_cmd"))
144143
console.AddItem("benchmark", inject_globals(run_benchmark), local.translate("benchmark_cmd"))
145144
# console.AddItem("activate_ton_storage_provider", inject_globals(activate_ton_storage_provider), local.translate("activate_ton_storage_provider_cmd"))
146145

@@ -403,12 +402,6 @@ def rollback_to_mtc1(local, ton, args):
403402
local.exit()
404403
#end define
405404

406-
def cleanup_validator_db(ton, args):
407-
cleanup_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/cleanup.sh')
408-
run_args = ["bash", cleanup_script_path]
409-
exit_code = run_as_root(run_args)
410-
#end define
411-
412405
def run_benchmark(ton, args):
413406
timeout = 200
414407
benchmark_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/benchmark.sh')

mytonctrl/resources/translate.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,6 @@
484484
"ru": "Отправить тестовое оповещение через Telegram Bot",
485485
"zh_TW": "通過 Telegram Bot 發送測試警報"
486486
},
487-
"cleanup_cmd": {
488-
"en": "Clean node old logs and temp files",
489-
"ru": "Очистить старые логи и временные файлы ноды",
490-
"zh_TW": "清理節點舊日誌和臨時文件"
491-
},
492487
"benchmark_cmd": {
493488
"en": "Run benchmark",
494489
"ru": "Запустить бенчмарк",

mytonctrl/scripts/cleanup.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)