-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure: use a custom event loop for authentication #5958
Conversation
@friggog can you try this patch to confirm whether it works for you or not? I've tested it by myself, and didn't hit any issues |
Unfortunately not fixed:
Same error as before when running dvc pull/fetch
Using azure-identity 1.5.0 and adlfs 0.7.4 if that's relevant I think the issue arises when using the filesystem from within a ThreadPoolExecutor (e.g. here and here) rather than when initializing it |
Generally, the methods of adlfs are always wrapped with an event loop, though there are 2 exceptions that I can see. One was the initialization, and now by looking at your traceback I also noticed that the |
@isidentical seems to be working locally using DefaultAzureCredential! I'll check with SPA later, but seems like this resolves the issue 🎉 |
Thanks for trying it out! We can probably wait for the SPA test, and then merge it. |
Also works using SPA - I get these warnings after the command completes though:
This didn't happen locally interestingly |
This is probably related to adlfs (unlikely) or the azure's python bindings (likely), where they don't close something somewhere. Honestly I think that we could ignore them just like we ignore normal asyncio warnings, since we are seeing those when they are getting deallocated so that means that is no leak or something like that. |
12f13fe
to
748c470
Compare
Resolves #5556