You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually I have a restful API, it will compress folder to zip and return zip file. But if I concurrent request many different folder to compress, some request will return error like this:
My code is:
The text was updated successfully, but these errors were encountered:
I have the same exact issue, this is due to the underlying shutil implementation, which calls os.chdir multiple times
Wrapping this in a thread assumes the caller is the only one manipulating the current directory, and that is not the case when awaiting the wrapped task
Actually I have a restful API, it will compress folder to zip and return zip file. But if I concurrent request many different folder to compress, some request will return error like this:
My code is:
The text was updated successfully, but these errors were encountered: