diff --git a/submit.yml.erb b/submit.yml.erb index c20d6afdec0e16a9407cf76f1d34c9976cbb2eec..0e89c479e9ad898000dc8cf84b9d7c88016b6d28 100644 --- a/submit.yml.erb +++ b/submit.yml.erb @@ -1,3 +1,9 @@ +<%- + email = ENV['USER'] + if !email.include? '@' + email = email + '@uab.edu' + end +-%> --- batch_connect: template: "vnc" @@ -14,3 +20,7 @@ script: <%- if bc_partition.include? "pascalnodes" -%> - "--gres=gpu:1" <%- end -%> +<%- if bc_email_on_started == "1" -%> + - "--mail-type=BEGIN" + - "--mail-user=<%= email %>" +<%- end -%>