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

Rethink crawler cronjob #1173

Closed
michielbdejong opened this issue Sep 13, 2024 · 1 comment
Closed

Rethink crawler cronjob #1173

michielbdejong opened this issue Sep 13, 2024 · 1 comment

Comments

@michielbdejong
Copy link
Member

I'm not so happy with the hourly cron job since it favours servers that are at the beginning of the alphabet, ramps up memory usage as it runs, and is always at a risk of overlapping with its own next run. We could add a semaphore and/or spawn one child process per service. We could also link the scheduler to the per-service API, so spontaneous crawls get queued whenever there are no interactive requests through the API.

We could also have semi-spontaneous crawls, for instance if someone is a reviewing a document that hasn't been crawled in more than a day, automatically trigger a crawl.

@michielbdejong
Copy link
Member Author

Done with tosdr/ota-engine#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant