diff --git a/submit.yml.erb b/submit.yml.erb index 8e9257bda3d65a0f9e94063df9eefab41822892c..646da4103aa067e46e030eab27a4fbffc84da324 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 -%>