-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve slurm complete/error email to describe where the pipeline output is #148
Labels
Comments
something like this #SBATCH --mail-type=END,FAIL # Notifications for job completion and failure
#SBATCH [email protected]
# Custom job body message function
send_custom_email() {
echo -e "Job Name: $SLURM_JOB_NAME\nJob ID: $SLURM_JOB_ID\nJob Status: $1\nNode List: $SLURM_JOB_NODELIST\nStart Time: $(date)" \
| mail -s "SLURM Job ${SLURM_JOB_ID} - ${1}" [email protected]
}
# Capture the job exit status
EXIT_STATUS=$?
# Send a custom email based on job success or failure
if [ $EXIT_STATUS -eq 0 ]; then
send_custom_email "COMPLETED"
else
send_custom_email "FAILED"
fi |
solution from stack overflow: https://stackoverflow.com/a/73293621/5787827 |
contact biowulf admins in case they have suggestions |
response from Wolfgang Resch:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can we customize the email body so users know which pipeline run failed?
also would be cool to run
grep -v completed
on the jobby log and include that in the emailThe text was updated successfully, but these errors were encountered: