-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding sleep to ease memory usage (#582)
* adding sleep to ease memory usage * preparing for release
- Loading branch information
1 parent
ba9d300
commit 1244e2a
Showing
11 changed files
with
80 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ coverage.xml | |
ignored.html | ||
*.html | ||
state1.json | ||
.fleet |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
from servicecatalog_puppet.waluigi.threads import topological_generations as threads_topological_generations | ||
from servicecatalog_puppet.waluigi.processes import topological_generations as processes_topological_generations | ||
from servicecatalog_puppet.waluigi.threads import ( | ||
topological_generations as threads_topological_generations, | ||
) | ||
from servicecatalog_puppet.waluigi.processes import ( | ||
topological_generations as processes_topological_generations, | ||
) | ||
|
||
|
||
def get_scheduler(threads_or_processes, algorithm): | ||
def get_scheduler(threads_or_processes: str, algorithm: str): | ||
name = f"{threads_or_processes}.{algorithm}" | ||
print(f"Using scheduler: {name}") | ||
if name == "threads.topological_generations": | ||
return threads_topological_generations | ||
if name == "processes.topological_generations": | ||
return processes_topological_generations | ||
|
||
raise Exception(f"Unsupported scheduler: {name}") | ||
raise Exception(f"Unsupported scheduler: {name}") |
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
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