1313from servicelib .long_running_tasks ._models import TaskGet , TaskStatus
1414from simcore_service_webserver ._meta import API_VTAG
1515from simcore_service_webserver .tasks ._exception_handlers import (
16- _TO_HTTP_ERROR_MAP as data_export_http_error_map ,
16+ _TO_HTTP_ERROR_MAP as export_data_http_error_map ,
1717)
1818
1919router = APIRouter (
2323 ],
2424)
2525
26- _data_export_responses : dict [int | str , dict [str , Any ]] = {
26+ _export_data_responses : dict [int | str , dict [str , Any ]] = {
2727 i .status_code : {"model" : EnvelopedError }
28- for i in data_export_http_error_map .values ()
28+ for i in export_data_http_error_map .values ()
2929}
3030
3131
3434 response_model = Envelope [list [TaskGet ]],
3535 name = "list_tasks" ,
3636 description = "Lists all long running tasks" ,
37- responses = _data_export_responses ,
37+ responses = _export_data_responses ,
3838)
3939def get_async_jobs (): ...
4040
@@ -44,7 +44,7 @@ def get_async_jobs(): ...
4444 response_model = Envelope [TaskStatus ],
4545 name = "get_task_status" ,
4646 description = "Retrieves the status of a task" ,
47- responses = _data_export_responses ,
47+ responses = _export_data_responses ,
4848)
4949def get_async_job_status (
5050 _path_params : Annotated [_PathParam , Depends ()],
@@ -55,7 +55,7 @@ def get_async_job_status(
5555 "/tasks/{task_id}" ,
5656 name = "cancel_and_delete_task" ,
5757 description = "Cancels and deletes a task" ,
58- responses = _data_export_responses ,
58+ responses = _export_data_responses ,
5959 status_code = status .HTTP_204_NO_CONTENT ,
6060)
6161def abort_async_job (
@@ -67,7 +67,7 @@ def abort_async_job(
6767 "/tasks/{task_id}/result" ,
6868 name = "get_task_result" ,
6969 description = "Retrieves the result of a task" ,
70- responses = _data_export_responses ,
70+ responses = _export_data_responses ,
7171)
7272def get_async_job_result (
7373 _path_params : Annotated [_PathParam , Depends ()],
0 commit comments