diff --git a/submit.yml.erb b/submit.yml.erb index ea81e5e966249dc692c16e6e327f2548a58924bf..08382d5202d83e7522b42b6d5bfbfa2bc97bf113 100644 --- a/submit.yml.erb +++ b/submit.yml.erb @@ -1,5 +1,11 @@ # Job submission configuration file # +<%- + email = ENV['USER'] + if !email.include? '@' + email = email + '@uab.edu' + end +-%> --- # This config comes from below URL # https://github.com/OSC/bc_example_jupyter/blob/custom_environment/submit.yml.erb @@ -22,3 +28,7 @@ script: <%- if bc_partition.include? "pascalnodes" -%> - "--gres=gpu:1" <%- end -%> +<%- if bc_email_on_started == "1" -%> + - "--mail-type=BEGIN" + - "--mail-user=<%= email %>" +<%- end -%>