-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor: retry_task_map now takes initializer and initargs params #324
Merged
Conversation
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
commit 35a6110460a70002af276ef589ef0abc40a19e3b Author: bodong.yang <[email protected]> Date: Sat Jun 22 20:47:36 2024 +0000 minor update commit 7f93d3898222d888465707c8e3563ff66cc0ef22 Author: bodong.yang <[email protected]> Date: Sat Jun 22 19:23:03 2024 +0000 try thread.Thread commit 1714c3f3937225067faeb2b71f2f0bb7a1a24aeb Author: bodong.yang <[email protected]> Date: Sat Jun 22 19:21:44 2024 +0000 try tdcb add release se commit f083830c3634fe34dfa438698ba5949d53109042 Author: bodong.yang <[email protected]> Date: Sat Jun 22 19:19:12 2024 +0000 add initfunc
Bodong-Yang
added
the
refactor
Rewrite/remove related code instead of patching them
label
Jun 24, 2024
Bodong-Yang
force-pushed
the
refactor/rtm2
branch
2 times, most recently
from
June 24, 2024 04:11
982324b
to
4da2b8e
Compare
Bodong-Yang
changed the title
feature: retry_task_map now takes initializer and initargs params
refactor: retry_task_map now takes initializer and initargs params
Jun 24, 2024
Quality Gate passedIssues Measures |
Bodong-Yang
added a commit
that referenced
this pull request
Jun 24, 2024
) This PR allows retry_task_map.ThreadPoolExecutorWithRetry to take initializer and initargs params, it will passthrough these params down to the ThreadPoolExecutor.__init__ to thread worker initializing. Now the ThreadPoolExecutorWithRetry can take all params taken by ThreadPoolExecutor. Other changes: * internal refinement over retry_task_map, now the watchdog and dispatcher don't occupy the thread pool workers anymore, there are running by dedicated threads. * internal refinement, now fut_gen(executed by main thread) will count the finished tasks. * do not launch watchdog thread if no checks will be performed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduction
This PR allows
retry_task_map.ThreadPoolExecutorWithRetry
to takeinitializer
andinitargs
params, it will passthrough these params down to theThreadPoolExecutor.__init__
to thread worker initializing.Other changes
retry_task_map
, now the watchdog and dispatcher don't occupy the thread pool workers anymore, there are running by dedicatedthreading.Thread
.Test