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

Use threadpool #22

Merged
merged 4 commits into from
Jul 7, 2017
Merged

Use threadpool #22

merged 4 commits into from
Jul 7, 2017

Conversation

landonreed
Copy link
Member

Prevent multiple threads from being started during heavy and light job execution.

Previously datatools-server kicked off an endless set of threads when asked to, e.g., fetch updated
feeds for an entire project. This work defines a lightweight and heavyweight ThreadPoolExecutor to
handle light and CPU-intensive tasks, respectively. Jobs are queued in the order they are requested,
so any massive set of jobs should still be performed off-peak to limit any impact on light user
activity.
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

Successfully merging this pull request may close these issues.

None yet

1 participant