Run checks and actions from the management command

This commit is contained in:
Mark Veidemanis 2023-02-18 21:36:38 +00:00
parent 0bf3329b61
commit 2b6f00a889
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ async def job():
for strategy in strategies: for strategy in strategies:
log.debug(f"Running strategy {strategy.name}") log.debug(f"Running strategy {strategy.name}")
ams = active_management.ActiveManagement(strategy) # noqa ams = active_management.ActiveManagement(strategy) # noqa
ams.run_checks()
ams.execute_actions()
class Command(BaseCommand): class Command(BaseCommand):