-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Attempt to add a 'shutdown' method to the TraitsExecutor * Fix Pinger / Pingee lifetime issues * Style fix to prevent black from reformatting * Remove debugging notes * Update docstrings for accuracy. * Implement shutdown * Another TODO: fix missing test. * Don't call stop on a STOPPING executor * Revert changes unrelated to this PR * Revert more changes unrelated to this PR (and moved into #335) * Remove unused import * Tidying: remove out-of-date comment, spurious blank line * Fix use of timeout, add a test * Remove TODO comments (transferred to the PR description) * Comment out timeout test for now; add timeouts to other shutdown calls * Move executor states to their own module * Fix up documentation for move of executor states * Add internal states to TraitsExecutor * Rework state transitions * Fix test_shutdown_timeout * Allow shutdown to be called from any state * Refactor to remove duplication and an unnecessary internal state * update docstring for long_running_task * Remove redundant wait call, clarify workings of test * Bring in changes from #334 * Remove code specific to the new 'shutdown' method * Fix references to RUNNING, STOPPING and STOPPED in the documentation * Update user guide to explain shutdown * Add explanatory comment to worker pool shutdown * Fix misleading method name * Update a docstring to follow NumPyDoc style * Minor code cleanup in _wait_for_tasks * Close the context at the same time as shutting down the router * Improve description of the new internal state * Language change: talk about unlinking rather than disconnecting * Separate methods for closing context and stopping router * Add note about testing * Documentation wording improvements * Updates to match #334 * Fix copy-and-paste bug in logging message * Fix logic in 'stopped' check * Fix inconsistent log message: all messages now include {self} * Make the shutdown argument keyword-only
- Loading branch information
1 parent
f65964a
commit bfb5e0c
Showing
4 changed files
with
302 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.