File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/web/server/src/simcore_service_webserver/trash Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ async def empty_trash(request: web.Request):
5050 user_id = get_user_id (request )
5151 product_name = get_product_name (request )
5252
53- is_running = asyncio .Event ()
53+ is_fired = asyncio .Event ()
5454
55- async def _run ():
56- is_running .set ()
55+ async def _empty_trash ():
56+ is_fired .set ()
5757 await _service .safe_empty_trash (
5858 request .app , product_name = product_name , user_id = user_id
5959 )
6060
6161 fire_and_forget_task (
62- _run (),
62+ _empty_trash (),
6363 task_suffix_name = "rest.empty_trash" ,
6464 fire_and_forget_tasks_collection = request .app [APP_FIRE_AND_FORGET_TASKS_KEY ],
6565 )
@@ -68,6 +68,6 @@ async def _run():
6868 # when the front-end requests the trash item list,
6969 # it may still display items, misleading the user into
7070 # thinking the `empty trash` operation failed.
71- await is_running .wait ()
71+ await is_fired .wait ()
7272
7373 return web .json_response (status = status .HTTP_204_NO_CONTENT )
You can’t perform that action at this time.
0 commit comments