-
Notifications
You must be signed in to change notification settings - Fork 658
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
Cannot get a repo info which just created in a same thread. #1945
Comments
There might be a race condition and/or stale caching server-side. In the meantime (to confirm or infirm this) can you check whether adding a e.g. 1sec delay in the same thread exhibits the same issue? |
Could you post a reproducible example for this issue @LittleApple-fp16. I'm not sure to understand if it's 1. a server-side caching issue because repo creation and "fs.exists" calls are made very closely or 2. a client-side caching issue because To test if the problem comes from 1., a 1s delay as suggested by @julien-c would be a good option. (small comment: |
Thanks for your reply. I've tried many possible approaches to this error, including long-time delay and breakpoint debugging, but did not work, this also verifies what I said that this seems to only occur under certain conditions in the same thread. |
@LittleApple-fp16 Can you provide a reproducible example then? If delays and breakpoints do not solve this problem, I am quite confident it comes from the cache inside |
Also tried HfApi.file_exists() here. |
Thanks for the reproducible example @LittleApple-fp16. Something is off here, I'll investigate it. |
Describe the bug
when upload models to a new repository then get its info or using glob to extraction path right away
if these things are in a same thread, repository will be completely invisible to the thread unless using a new thread
another solution is to create a new fs instance without using token

Reproduction
No response
Logs
No response
System info
The text was updated successfully, but these errors were encountered: