Revert "perf: 修复 task id 不对的问题"

This reverts commit 1d6d92c160.
pull/11646/head
老广 1 year ago
parent 1d6d92c160
commit 0397bdeb46

@ -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(task.id)
instance.save_task(instance.id)
return Response({'task': str(task.id)}, status=201)
@action(methods=['post'], detail=False)

Loading…
Cancel
Save