<#1802 Async agent delete function for while loop ...
# flyte-github
a
#1802 Async agent delete function for while loop case Pull request opened by Future-Outlier TL;DR As title. I forgot to handle the case the function in while loop. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☐ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description If you use the current async delete function, it will face problem when you try to cancel the job in the waiting loop.

image▾

This is because the code here: https://github.com/flyteorg/flytekit/blob/master/flytekit/extend/backend/base_agent.py#L190-L199 It didn't give any space for user to use the default event loop, which is used by asyncio.run, so I need to create a new event loop. Tracking Issue #1800 flyteorg/flyte#3936 Follow-up issue NA OR https://github.com/flyteorg/flyte/issues/ flyteorg/flytekit ✅ All checks have passed 30/30 successful checks