Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor RQId / RQIdManager #8306

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix the legacy status endpoint
`RQId` wants an integer, but `pk` is a string.
  • Loading branch information
SpecLad committed Aug 15, 2024
commit b80790cdf5d1d4bdbfdc1c685b094f55dc001b1c
4 changes: 2 additions & 2 deletions cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,10 +1515,10 @@ def append_annotations_chunk(self, request, pk, file_id):
)
@action(detail=True, methods=['GET'], serializer_class=RqStatusSerializer)
def status(self, request, pk):
self.get_object() # force call of check_object_permissions()
task = self.get_object() # force call of check_object_permissions()
response = self._get_rq_response(
queue=settings.CVAT_QUEUES.IMPORT_DATA.value,
job_id=RQId(RequestAction.CREATE, RequestTarget.TASK, pk).render()
job_id=RQId(RequestAction.CREATE, RequestTarget.TASK, task.id).render()
)
serializer = RqStatusSerializer(data=response)

Expand Down
Loading