Skip to content

Commit

Permalink
fix: LEAP-1136: put data import operations on high priority queue (#5951
Browse files Browse the repository at this point in the history
)

Moves `async_reimport_background` and `async_import_background` jobs to
high priority queue, since these operations are directly observable in
the UI.
  • Loading branch information
jombooth committed Jun 7, 2024
1 parent 2226abe commit 30a71d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions label_studio/data_import/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def async_import(self, request, project, preannotated_from_fields, commit_to_pro
async_import_background,
project_import.id,
request.user.id,
queue_name='high',
on_failure=set_import_background_failure,
project_id=project.id,
organization_id=request.user.active_organization.id,
Expand Down Expand Up @@ -438,6 +439,7 @@ def async_reimport(self, project, file_upload_ids, files_as_tasks_list, organiza
project_reimport.id,
organization_id,
self.request.user,
queue_name='high',
on_failure=set_reimport_background_failure,
project_id=project.id,
)
Expand Down

0 comments on commit 30a71d5

Please sign in to comment.