mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 15:28:38 +00:00
perf: account task timing not triggered (#9564)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from accounts.tasks import execute_automation
|
||||
from assets.models.automations import (
|
||||
BaseAutomation as AssetBaseAutomation,
|
||||
AutomationExecution as AssetAutomationExecution
|
||||
@@ -14,6 +14,10 @@ class AccountBaseAutomation(AssetBaseAutomation):
|
||||
proxy = True
|
||||
verbose_name = _("Account automation task")
|
||||
|
||||
@property
|
||||
def execute_task(self):
|
||||
return execute_automation
|
||||
|
||||
@property
|
||||
def execution_model(self):
|
||||
return AutomationExecution
|
||||
|
Reference in New Issue
Block a user