Skip to content
Snippets Groups Projects
Commit 446770fe authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Send email notify when slurm job BEGIN

parent 9ba7ec0e
No related branches found
No related tags found
No related merge requests found
# 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 -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment