File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
services/web/server/src/simcore_service_webserver Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ def get_async_job_status(
5353
5454@router .delete (
5555 "/tasks/{task_id}" ,
56- name = "cancel_task " ,
57- description = "Cancels a task" ,
56+ name = "cancel_and_delete_task " ,
57+ description = "Cancels and deletes a task" ,
5858 responses = _export_data_responses ,
5959 status_code = status .HTTP_204_NO_CONTENT ,
6060)
Original file line number Diff line number Diff line change @@ -3129,7 +3129,7 @@ paths:
31293129 - long-running-tasks
31303130 summary : Cancel And Delete Task
31313131 description : Cancels and deletes a task
3132- operationId : cancel_and_delete_async_job
3132+ operationId : cancel_async_job
31333133 parameters :
31343134 - name : task_id
31353135 in : path
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def _create_data_response_from_async_job(
185185 task_id = async_job_id ,
186186 task_name = async_job_id ,
187187 status_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_status' ].url_for (task_id = async_job_id )))} " ,
188- abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_and_delete_async_job ' ].url_for (task_id = async_job_id )))} " ,
188+ abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_async_job ' ].url_for (task_id = async_job_id )))} " ,
189189 result_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_result' ].url_for (task_id = async_job_id )))} " ,
190190 ),
191191 status = status .HTTP_202_ACCEPTED ,
@@ -505,7 +505,7 @@ def allow_only_simcore(cls, v: int) -> int:
505505 task_id = _job_id ,
506506 task_name = _job_id ,
507507 status_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_status' ].url_for (task_id = _job_id )))} " ,
508- abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_and_delete_async_job ' ].url_for (task_id = _job_id )))} " ,
508+ abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_async_job ' ].url_for (task_id = _job_id )))} " ,
509509 result_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_result' ].url_for (task_id = _job_id )))} " ,
510510 ),
511511 status = status .HTTP_202_ACCEPTED ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ async def get_async_jobs(request: web.Request) -> web.Response:
8787 task_id = f"{ job .job_id } " ,
8888 task_name = job .job_name ,
8989 status_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_status' ].url_for (task_id = str (job .job_id ))))} " ,
90- abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_and_delete_async_job ' ].url_for (task_id = str (job .job_id ))))} " ,
90+ abort_href = f"{ request .url .with_path (str (request .app .router ['cancel_async_job ' ].url_for (task_id = str (job .job_id ))))} " ,
9191 result_href = f"{ request .url .with_path (str (request .app .router ['get_async_job_result' ].url_for (task_id = str (job .job_id ))))} " ,
9292 )
9393 for job in user_async_jobs
You can’t perform that action at this time.
0 commit comments