Skip to content

Commit 3357e59

Browse files
update method
1 parent ae5581a commit 3357e59

File tree

1 file changed

+1
-1
lines changed
  • packages/service-library/src/servicelib/fastapi/long_running_tasks

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/fastapi/long_running_tasks/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def _task_result(session: httpx.AsyncClient, result_url: URL) -> Any:
106106

107107
@retry(**_DEFAULT_FASTAPI_RETRY_POLICY)
108108
async def _abort_task(session: httpx.AsyncClient, abort_url: URL) -> None:
109-
response = await session.delete(f"{abort_url}")
109+
response = await session.post(f"{abort_url}")
110110
response.raise_for_status()
111111

112112

0 commit comments

Comments
 (0)