-
Notifications
You must be signed in to change notification settings - Fork 6
Process retrieved jobs using a thread pool #15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4f6885c
Add queues to manage job processing
mcdonnnj f78429c
Process completed jobs using a thread pool
mcdonnnj 384d8ea
Output thread name in logging
mcdonnnj 9db2194
Do not use blocking `Queue.get()` calls
mcdonnnj 7d747cb
Adjust job processing thread `while` loop
mcdonnnj 3c98a8b
Add failure information when thread fail to start
mcdonnnj 62e8286
Log the number of job processing threads
mcdonnnj 18992ee
Add exception handling to the queue job processing logic
mcdonnnj d657515
Include thread name in Nessus importer logging output
mcdonnnj d44171b
Bail out of commander startup if thread creation fails
mcdonnnj b1345b9
Format project with `black`
mcdonnnj 6cc63dd
Reduce sleep duration if both job queues are empty
mcdonnnj ee7ebca
Add a new class variable to control job processing threads
mcdonnnj 7e22318
Add a logging message before waiting on job queues
mcdonnnj bd65ee5
Add a thread to output job queue load periodically
mcdonnnj e53ca94
Only perform thread starting in the `try` block
mcdonnnj a80dd94
Fix incorrect usage of `sleep()`
mcdonnnj 21dac7c
Use consistent logging messages
mcdonnnj d86bbe7
Reference thread type in thread start failure log messages
mcdonnnj cf524e7
Format project with `black`
mcdonnnj c687f61
Provide names for threads created for job processing
mcdonnnj e911fc2
Fix sorting of class variable definitions
mcdonnnj 139d10a
Move sleep duration static values into class variables
mcdonnnj d2cd01d
Ensure threads report task completion
mcdonnnj 41426fb
Change the value used by the queue monitor
mcdonnnj 49122e8
Add a lock for the queue monitor's output
mcdonnnj 542c804
Minimize `while` loop condition for job processing threads
mcdonnnj 7fb3c4d
Update job processing to use a helper function
mcdonnnj 766a1e8
Update the comment for the `__monitor_job_queues()` method
mcdonnnj 09bf219
Apply Copilot suggestions
mcdonnnj 5b4a6d3
Ensure nmap_importer log outputs references thread name
mcdonnnj 19d9012
Bump version from 1.0.2 to 1.1.0
mcdonnnj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.