-
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.
Initial implementation of a runtime configuration mechanism to allow …
…easier config modification.
- Loading branch information
Showing
8 changed files
with
93 additions
and
12 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 |
---|---|---|
|
@@ -150,4 +150,4 @@ _html/ | |
.initialize_new_project.sh | ||
|
||
# Parsl log files | ||
runinfo/ | ||
run_logs/ |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# All values set here will be applied to the resource configuration prior to | ||
# calling parsl.load(config). Even if the key does't exist in the resource | ||
# config, it will be added with the value defined here. | ||
[resource_config_modifiers] | ||
checkpoint_mode = "task_exit" | ||
|
||
|
||
# Values in the apps.XXX section will be passed as a dictionary to the corresponding | ||
# app. e.g. apps.create_uri_manifest will be passed to the create_uri_manifest app. | ||
[apps.create_uri_manifest] | ||
# The path to the staging directory | ||
# e.g. "/gscratch/dirac/kbmod/workflow/staging" | ||
staging_directory = "/home/drew/code/kbmod-wf/dev_staging" |
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,5 +1,6 @@ | ||
from .configuration_utilities import get_resource_config | ||
from .configuration_utilities import get_resource_config, apply_runtime_updates | ||
from .executor_utilities import get_executors | ||
from .logger_utilities import configure_logger | ||
from .memoization_utilities import id_for_memo_file | ||
|
||
__all__ = ["get_resource_config", "get_executors", "configure_logger"] | ||
__all__ = ["apply_runtime_updates", "get_resource_config", "get_executors", "configure_logger"] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import os | ||
from parsl.dataflow.memoization import id_for_memo | ||
from parsl import File | ||
|
||
|
||
@id_for_memo.register(File) | ||
def id_for_memo_file(parsl_file_object: File, output_ref: bool = False) -> bytes: | ||
if output_ref and os.path.exists(parsl_file_object.filepath): | ||
return pickle.dumps(parsl_file_object.filepath) |
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