Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Jul 26, 2024
1 parent 2f63c07 commit 4129851
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cvat/apps/engine/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def handle_local_download() -> Response:

return Response(status=status.HTTP_201_CREATED)

cancel_and_reenqueue()
cancel_and_reenqueue(rq_job)
else:
raise NotImplementedError(
f"Export to {self.export_args.location} location is not implemented yet"
Expand All @@ -333,10 +333,10 @@ def handle_local_download() -> Response:
# Such dependencies are never removed or finished,
# as there is no TTL for deferred jobs,
# so the current job can be blocked indefinitely.
cancel_and_reenqueue()
cancel_and_reenqueue(rq_job)

if is_result_outdated():
cancel_and_reenqueue()
cancel_and_reenqueue(rq_job)

return Response(status=status.HTTP_202_ACCEPTED)

Expand Down

0 comments on commit 4129851

Please sign in to comment.