Commit 9425a27e authored by Max's avatar Max
Browse files

Also try getting SLURM host_logdir from LDAP

parent a0cca02d
......@@ -120,7 +120,8 @@ public class SLURM extends BatchQueue {
final String name = String.format("jobagent_%s_%d", this.config.get("host_host"), timestamp);
// Check if we can use SLURM_LOG_PATH instead of sending to /dev/null
final String host_logdir = environment.get("SLURM_LOG_PATH");
final String host_logdir = environment.getOrDefault("SLURM_LOG_PATH", config.get("host_logdir") != null ? config.get("host_logdir").toString() : null);
if (host_logdir != null) {
final String log_folder_path = String.format("%s/%s", host_logdir, current_date_str);
final File log_folder = new File(log_folder_path);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment