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

warn if there are more pending jobs than idle threads #247

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

mmerickel
Copy link
Member

Fixes comments in #243 (comment).

  1. A warning will now be emitted if a bunch of tasks are submitted while there is an idle thread, before the threads pop the jobs, because we know that when they pop them there will still be too many.
  2. Greatly simplified the shutdown logic on the threads to use only stop_count and get rid of the tombstoned None task.
  3. Shutdown now uses a condition to exit every so slightly faster when all threads are complete by having each dying thread notify.
  4. Added a warning on shutdown if any tasks are canceled.

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

2 participants