Skip to content

Commit

Permalink
mxqsub: Remove default time warning
Browse files Browse the repository at this point in the history
Remove the warning for the default runtime option in mxqsub. Users found
the message "option '--runtime' or '-t' not used. Your job will get
killed if it runs longer than the default of 15 minutes" annoying,
especially as there's no equivalent warning for the default memory
limit.
  • Loading branch information
donald committed Jan 10, 2024
1 parent f08314c commit c7f57d8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ int main(int argc, char *argv[])
arg_program_name = NULL;
arg_threads = 1;
arg_memory = 2048;
arg_time = 0;
arg_time = 15;
arg_max_per_node = 0;
arg_workdir = current_workdir;
arg_stdout = "/dev/null";
Expand Down Expand Up @@ -1041,11 +1041,6 @@ int main(int argc, char *argv[])
arg_program_name = argv[0];
}

if (!arg_time) {
arg_time = 15;
mx_log_warning("option '--runtime' or '-t' not used. Your job will get killed if it runs longer than the default of %d minutes.", arg_time);
}

if (arg_time > 60*24) {
mx_log_warning("option '--runtime' specifies a runtime longer than 24h. Your job may get killed. Be sure to implement some check pointing.");
}
Expand Down

0 comments on commit c7f57d8

Please sign in to comment.