-
Couldn't load subscription status.
- Fork 969
fix: async_ingest concurrent repo cloning
#309
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
Conversation
async_ingest concurrent repo cloning
|
@dmnunez1993 Thank you very much for this PR Also, the CI is failing, could you run |
|
@dmnunez1993 We were just missing the parent directory, I added it and merged, thanks a lot for your contrib! |
Fixes an issue when using ingest_async as described in #261 by @Pedrexus.
This issue occurred because
TMP_BASE_PATHwas being completely removed after each repository was cloned. In an asynchronous context, multiple repositories can be cloned at the same time. IfTMP_BASE_PATHis deleted while another clone is still in progress, it can cause an error indicating that the target folder no longer exists.As an alternative,
query.local_pathis used. This folder is created during the initial parse of the repository, and has a unique name, and therefore avoids conflicts even when multiple repositories are being cloned concurrently.