perf: account backup (#9013)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-11-03 16:57:34 +08:00
committed by GitHub
parent 4bf147a93f
commit 54f92e100e
7 changed files with 39 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ from .gather_facts.manager import GatherFactsManager
from .gather_accounts.manager import GatherAccountsManager
from .verify_account.manager import VerifyAccountManager
from .push_account.manager import PushAccountManager
from .backup_account.manager import AccountBackupManager
from ..const import AutomationTypes
@@ -13,6 +14,8 @@ class ExecutionManager:
AutomationTypes.gather_accounts: GatherAccountsManager,
AutomationTypes.verify_account: VerifyAccountManager,
AutomationTypes.push_account: PushAccountManager,
# TODO 后期迁移到自动化策略中
'backup_account': AccountBackupManager,
}
def __init__(self, execution):
@@ -21,4 +24,3 @@ class ExecutionManager:
def run(self, *args, **kwargs):
return self._runner.run(*args, **kwargs)