-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/threading #35
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
Open
krowvin
wants to merge
21
commits into
main
Choose a base branch
from
feature/threading
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
304b022
Move reports to directories by district, start work on threading / t…
krowvin 94e75f3
Experimenting with forms
krowvin 47e4d43
More deciding where to place the thread handlers
krowvin b18f271
Set version and thread count in repgen and pass to other locations.
krowvin 5eee4bc
Migrate fetch code to a http worker for threading (not a working commit)
krowvin d0c7191
Working state. Tested to bring time down from 17s to 2s with parallel…
krowvin 1c3aec5
It's thread safer...
krowvin e44f9d6
Fix requirement files - accidentally froze the wrong env. Going with …
krowvin 35148b2
Investigating why deep copy is not working with value's _thread.lock.…
krowvin e066dfc
Fixed thread lock issue. Can't pass threads via parameters has to be …
krowvin 733a577
Manually run spk converter tests to make sure those are still working…
krowvin 5bd49fb
Update workflow to ensure shell script is executable. Add SWT test fo…
krowvin d8f04d7
Fix issue where queue was not properly being passed to thread workers…
krowvin 84a0f34
120 seconds was too generous for an HTTP call in the thread
krowvin d6ab576
No need to lock since we don't try to access these threads from elsew…
krowvin f6cfbe1
Fixed - to _ in test form
krowvin cbc10ec
Rename tests, make the test files targetable, attempt to fix race con…
krowvin 3089317
Update form to be dynamic again
krowvin 7126e78
Fix spacing on sequential form
krowvin 9ce2770
Convert the batch to a shell script for automation tests
krowvin b1ec50e
Fixed report name in pytest for ci/cd
krowvin 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,3 +7,4 @@ test_priv/* | |
| *~ | ||
| .vscode | ||
| *.swp | ||
| *.log | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| __version__ = "5.1.0" | ||
| # =========================================== # | ||
| # THREADING VARS # | ||
| # =========================================== # | ||
| THREAD_COUNT = 15 | ||
| THREAD_TIMEOUT = 30 # Seconds to consider thread is still alive | ||
| # =========================================== # | ||
| REPGEN_GITHUB_ISSUES_URL = "https://github.com/USACE-WaterManagement/repgen5/issues" | ||
| # CDA Constants | ||
| PARAM_DT_FMT = "%Y-%m-%dT%H:%M:%S" | ||
| # =========================================== # | ||
| # Global Variables Shared Between Classes # | ||
| # =========================================== # | ||
| threads = [] | ||
| queue = None |
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.