perf: 优化并发处理

This commit is contained in:
ibuler
2023-02-09 20:48:25 +08:00
parent e590518108
commit 37a52c420f
26 changed files with 274 additions and 416 deletions

View File

@@ -4,9 +4,9 @@ from assets.tasks.common import generate_automation_execution_data
from common.const.choices import Trigger
def automation_execute_start(task_name, tp, child_snapshot=None):
def automation_execute_start(task_name, tp, task_snapshot=None):
from accounts.models import AutomationExecution
data = generate_automation_execution_data(task_name, tp, child_snapshot)
data = generate_automation_execution_data(task_name, tp, task_snapshot)
while True:
try: