aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-11-11 15:52:55 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-11-11 15:54:22 -0500
commitbd77ddeb8eeeb4a588e1e31336c2ca5534c44c56 (patch)
treeb32d3c2ed7f9e8119e6596900324c851e1020054
parentca7b0bfe0cc030378ad0297c10c71903043e7c60 (diff)
downloadstasis-bd77ddeb8eeeb4a588e1e31336c2ca5534c44c56.tar.gz
Add --no-task-logging CLI argument
-rw-r--r--src/cli/stasis/args.c2
-rw-r--r--src/cli/stasis/include/args.h1
-rw-r--r--src/lib/core/globals.c1
-rw-r--r--src/lib/core/include/core.h1
4 files changed, 5 insertions, 0 deletions
diff --git a/src/cli/stasis/args.c b/src/cli/stasis/args.c
index f3ce823..fbda494 100644
--- a/src/cli/stasis/args.c
+++ b/src/cli/stasis/args.c
@@ -20,6 +20,7 @@ struct option long_options[] = {
{"no-artifactory-upload", no_argument, 0, OPT_NO_ARTIFACTORY_UPLOAD},
{"no-testing", no_argument, 0, OPT_NO_TESTING},
{"no-parallel", no_argument, 0, OPT_NO_PARALLEL},
+ {"no-task-logging", no_argument, 0, OPT_NO_TASK_LOGGING},
{"no-rewrite", no_argument, 0, OPT_NO_REWRITE_SPEC_STAGE_2},
{0, 0, 0, 0},
};
@@ -43,6 +44,7 @@ const char *long_options_help[] = {
"Do not upload artifacts to Artifactory (dry-run)",
"Do not execute test scripts",
"Do not execute tests in parallel",
+ "Do not log task output (write to stdout)",
"Do not rewrite paths and URLs in output files",
NULL,
};
diff --git a/src/cli/stasis/include/args.h b/src/cli/stasis/include/args.h
index 5bad752..850be4a 100644
--- a/src/cli/stasis/include/args.h
+++ b/src/cli/stasis/include/args.h
@@ -17,6 +17,7 @@
#define OPT_FAIL_FAST 1009
#define OPT_NO_PARALLEL 1010
#define OPT_POOL_STATUS_INTERVAL 1011
+#define OPT_NO_TASK_LOGGING 1012
extern struct option long_options[];
void usage(char *progname);
diff --git a/src/lib/core/globals.c b/src/lib/core/globals.c
index d84e799..a262d6c 100644
--- a/src/lib/core/globals.c
+++ b/src/lib/core/globals.c
@@ -41,6 +41,7 @@ struct STASIS_GLOBAL globals = {
.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
+ .enable_task_logging = true, ///< Toggle logging for multiprocess tasks
.parallel_fail_fast = false, ///< Kill ALL multiprocessing tasks immediately on error
.pool_status_interval = 30, ///< Report "Task is running"
};
diff --git a/src/lib/core/include/core.h b/src/lib/core/include/core.h
index 92969d2..e96e010 100644
--- a/src/lib/core/include/core.h
+++ b/src/lib/core/include/core.h
@@ -42,6 +42,7 @@ struct STASIS_GLOBAL {
bool enable_overwrite; //!< Enable release file clobbering
bool enable_rewrite_spec_stage_2; //!< Enable automatic @STR@ replacement in output files
bool enable_parallel; //!< Enable testing in parallel
+ bool enable_task_logging; //!< Enable logging task output to a file
long cpu_limit; //!< Limit parallel processing to n cores (default: max - 1)
long parallel_fail_fast; //!< Fail immediately on error
int pool_status_interval; //!< Report "Task is running" every n seconds