mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 23:47:40 +00:00
perf: 优化账号任务
This commit is contained in:
@@ -9,7 +9,7 @@ def quickstart_automation_by_snapshot(task_name, tp, task_snapshot=None):
|
||||
data = generate_automation_execution_data(task_name, tp, task_snapshot)
|
||||
|
||||
pk = data['id']
|
||||
if AutomationExecution.objects.exists(id=pk):
|
||||
if AutomationExecution.objects.filter(id=pk).exists():
|
||||
data['id'] = str(uuid.uuid4())
|
||||
|
||||
execution = AutomationExecution.objects.create(
|
||||
|
Reference in New Issue
Block a user