Skip to content
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

Background task sequencing issue causing download/indexing loops #3720

Closed
Jreuningschererhubbell opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working fixed-in-next-release

Comments

@Jreuningschererhubbell
Copy link

Describe the bug
Sequencing error in background tasks causes repeated deletion and re-downloading/indexing of remote repos provided in config.toml.

This seems to have arisen as a side effect of the fix for issue #3692 that was implemented in #3703.

Information about your version
Main branch, as of Jan 17.

Information about your GPU
Apple M2 Max

Additional context

The fix for issue #3692 that was implemented in #3703 seems to have created a sequencing error.

When the hourly task runs, repos are scheduled for indexing. When the garbage collector runs, it does not see the repos in config.toml, so it removes them from the index and the repositories folder. Then when the scheduled indexing occurs, the repos are not found and so they are pulled again. This behavior is shown in the attached log file. Note that I modified the background task to run the hourly task every 6 minutes to increase testing speed. However, I also observed this behavior with the unmodified interval.

IndexLoop1.log

I managed to resolve the issue by ensuring the function list_all_code_repository included the repos in config.toml. This change is implemented in this fork.

@wsxiaoys
Copy link
Member

Thank you for bringing this issue to our attention. It appears that a step was inadvertently omitted during the last fix, as detailed in #3703. We are currently addressing this oversight with a new fix in #3721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-in-next-release
Projects
None yet
Development

No branches or pull requests

2 participants