aboutsummaryrefslogtreecommitdiff
path: root/src/globals.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-10-04 08:40:39 -0400
committerGitHub <noreply@github.com>2024-10-04 08:40:39 -0400
commitd7e3deba72703ad36c497f5becf6772ca00a0d6d (patch)
treeeff3b2ec3dcc31126041529c8e00a714997f2d7b /src/globals.c
parent9691ccf51b3efd8113e9620c4afa8b5382d7f161 (diff)
parentf0ba8cd378a460f927644e41f49be95d0e956f81 (diff)
downloadstasis-d7e3deba72703ad36c497f5becf6772ca00a0d6d.tar.gz
Merge pull request #46 from jhunkeler/split-delivery-code
Add multiprocessing / Split delivery code
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/globals.c b/src/globals.c
index 1e27959..1b682cb 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -25,19 +25,22 @@ const char *BANNER =
"Association of Universities for Research in Astronomy (AURA)\n";
struct STASIS_GLOBAL globals = {
- .verbose = false,
- .continue_on_error = false,
- .always_update_base_environment = false,
- .conda_fresh_start = true,
- .conda_install_prefix = NULL,
- .conda_packages = NULL,
- .pip_packages = NULL,
- .tmpdir = NULL,
- .enable_docker = true,
- .enable_artifactory = true,
- .enable_artifactory_build_info = true,
- .enable_testing = true,
- .enable_rewrite_spec_stage_2 = true,
+ .verbose = false, ///< Toggle verbose mode
+ .continue_on_error = false, ///< Do not stop program on error
+ .always_update_base_environment = false, ///< Run "conda update --all" after installing Conda
+ .conda_fresh_start = true, ///< Remove/reinstall Conda at startup
+ .conda_install_prefix = NULL, ///< Path to install Conda
+ .conda_packages = NULL, ///< Conda packages to install
+ .pip_packages = NULL, ///< Python packages to install
+ .tmpdir = NULL, ///< Path to store temporary data
+ .enable_docker = true, ///< Toggle docker usage
+ .enable_artifactory = true, ///< Toggle artifactory server usage
+ .enable_artifactory_build_info = true, ///< Toggle build-info uploads
+ .enable_testing = true, ///< Toggle [test] block "script" execution. "script_setup" always executes.
+ .enable_rewrite_spec_stage_2 = true, ///< Leave template stings in output files
+ .enable_parallel = true, ///< Toggle testing in parallel
+ .parallel_fail_fast = false, ///< Kill ALL multiprocessing tasks immediately on error
+ .pool_status_interval = 30, ///< Report "Task is running"
};
void globals_free() {
@@ -55,7 +58,6 @@ void globals_free() {
guard_free(globals.jfrog.jfrog_artifactory_base_url);
guard_free(globals.jfrog.jfrog_artifactory_product);
guard_free(globals.jfrog.remote_filename);
- guard_free(globals.workaround.tox_posargs);
guard_free(globals.workaround.conda_reactivate);
if (globals.envctl) {
envctl_free(&globals.envctl);