perf: 优化 tasks

This commit is contained in:
ibuler
2023-02-20 18:00:29 +08:00
parent 17a77586f7
commit 37c54e976f
16 changed files with 63 additions and 67 deletions

View File

@@ -1,6 +1,6 @@
from django.utils.translation import gettext_lazy as _
from accounts.tasks import execute_automation
from accounts.tasks import execute_account_automation_task
from assets.models.automations import (
BaseAutomation as AssetBaseAutomation,
AutomationExecution as AssetAutomationExecution
@@ -16,7 +16,7 @@ class AccountBaseAutomation(AssetBaseAutomation):
@property
def execute_task(self):
return execute_automation
return execute_account_automation_task
@property
def execution_model(self):