perf: 修复 task id 不对的问题

pull/11644/head
ibuler 2023-09-21 15:19:12 +08:00 committed by 老广
parent cdbe5d31e9
commit 1d6d92c160
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class AppletHostDeploymentViewSet(viewsets.ModelViewSet):
serializer.is_valid(raise_exception=True)
instance = serializer.save()
task = run_applet_host_deployment.delay(instance.id)
instance.save_task(instance.id)
instance.save_task(task.id)
return Response({'task': str(task.id)}, status=201)
@action(methods=['post'], detail=False)