From 212e56f1256b8ff3e9dacb0b867e48fcb9d2a315 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 11 Nov 2025 15:52:55 -0500 Subject: Add --no-task-logging CLI argument --- src/cli/stasis/include/args.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cli/stasis/include/args.h') 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); -- cgit From 18b29bd58d1daa1752e981488445e0fcb100f2a7 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 30 Dec 2025 11:28:36 -0500 Subject: Implement task timeout * Add argument: --task-timeout=1[s,m,h] * Timed out tasks are SIGKILL'd * If killing a task fails, the entire program ends --- src/cli/stasis/include/args.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cli/stasis/include/args.h') diff --git a/src/cli/stasis/include/args.h b/src/cli/stasis/include/args.h index 850be4a..d75fe29 100644 --- a/src/cli/stasis/include/args.h +++ b/src/cli/stasis/include/args.h @@ -18,8 +18,13 @@ #define OPT_NO_PARALLEL 1010 #define OPT_POOL_STATUS_INTERVAL 1011 #define OPT_NO_TASK_LOGGING 1012 +#define OPT_TASK_TIMEOUT 1013 extern struct option long_options[]; void usage(char *progname); +#define STR_TO_TIMEOUT_NEGATIVE (-1) +#define STR_TO_TIMEOUT_INVALID_TIME_SCALE (-2) +int str_to_timeout(char *s); + #endif //STASIS_ARGS_H -- cgit From 9be1567765803341e252e87262dc43d790d8e770 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 2 Jan 2026 16:23:28 -0500 Subject: Move utility functions to utils.c --- src/cli/stasis/include/args.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/cli/stasis/include/args.h') diff --git a/src/cli/stasis/include/args.h b/src/cli/stasis/include/args.h index d75fe29..5536735 100644 --- a/src/cli/stasis/include/args.h +++ b/src/cli/stasis/include/args.h @@ -23,8 +23,4 @@ extern struct option long_options[]; void usage(char *progname); -#define STR_TO_TIMEOUT_NEGATIVE (-1) -#define STR_TO_TIMEOUT_INVALID_TIME_SCALE (-2) -int str_to_timeout(char *s); - #endif //STASIS_ARGS_H -- cgit