forked from red-hat-storage/cephci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHCEPHQE-17401: Refactor with context in parallel module.
The initial design populated the results only when it had completed successfully. This could be a impact when qe is refering the values during the context. In this PR, the futures.as_completed is not used instead the timeout is controlled via datetime methods. Also, results are continued to be appended at the end of the method. The iteration is modified to use `_futures` instead of _results. This way we can capture details on the cancelled threads also. Signed-off-by: Pragadeeswaran Sathyanarayanan <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
29 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