MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / main

Function main

script/task_script_extension.py:491–505  ·  view source on GitHub ↗
(action: str)

Source from the content-addressed store, hash-verified

489
490
491def main(action: str):
492 if action == "check502Task":
493 Task().check502Task()
494 elif action == "refresh_domain_cache":
495 Task().refresh_domain_cache()
496 elif action == "update_software_list":
497 Task().update_software_list()
498 elif action == "maillog_event":
499 Task().maillog_event_service()
500 elif action == "check_database_quota":
501 Task().check_database_quota()
502 elif action == "task_ssh_error_count":
503 task_ssh_error_count()
504 else:
505 print("Unknown action: {}".format(action))
506
507if __name__ == "__main__":
508 if len(sys.argv) < 2:

Callers 1

Calls 8

task_ssh_error_countFunction · 0.85
check502TaskMethod · 0.80
update_software_listMethod · 0.80
maillog_event_serviceMethod · 0.80
check_database_quotaMethod · 0.80
TaskClass · 0.70
refresh_domain_cacheMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected