mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-22 16:16:37 +00:00
fix: 修复celery api 报错
This commit is contained in:
parent
32cba4f2a1
commit
2fcf045826
@ -82,7 +82,7 @@ class CeleryResultApi(generics.RetrieveAPIView):
|
|||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
pk = self.kwargs.get('pk')
|
pk = self.kwargs.get('pk')
|
||||||
return AsyncResult(pk)
|
return AsyncResult(str(pk))
|
||||||
|
|
||||||
|
|
||||||
class CeleryPeriodTaskViewSet(CommonApiMixin, viewsets.ModelViewSet):
|
class CeleryPeriodTaskViewSet(CommonApiMixin, viewsets.ModelViewSet):
|
||||||
|
Loading…
Reference in New Issue
Block a user