Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
wait_notify/wait_notify_config.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64 lines (45 sloc)
1.73 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------- | |
# Re-email user after this many days | |
#-------------------------------------------------- | |
NOTICE_AGE_DAYS = 7 # Days to wait until new notice. | |
#-------------------------------------------------- | |
# Log file | |
#-------------------------------------------------- | |
LOG_FILE = "/var/db/wait_notify/log/wait_notify.log" | |
#-------------------------------------------------- | |
# Email subject | |
#-------------------------------------------------- | |
MAIL_SUBJECT = "HPC Storrs Cluster - Your unrunnable jobs" | |
#-------------------------------------------------- | |
# Main section of email message | |
#-------------------------------------------------- | |
MAIL_TEMPLATE = """ | |
Dear %(username)s: | |
You have one or more pending jobs on the Storrs HPC Cluster that | |
cannot run because of their configuration; these jobs are listed at the | |
end of this email. | |
Please cancel these job(s) with the command | |
scancel JOBID | |
where JOBID is the jobid for each unrunnable job shown below. | |
If you have any questions, please email us at hpc@uconn.edu. | |
Thanks. | |
The Storrs HPC Team | |
======================================================================== | |
LIST OF UNRUNNABLE JOB(S) | |
""" | |
#-------------------------------------------------- | |
# Templates to explain each type of unrunnable job | |
# This is printed once for each job | |
#-------------------------------------------------- | |
REASON_TEMPLATES = { | |
'PartitionTimeLimit': | |
""" | |
JobID %(jobid)s | |
Submitted %(submittime)s | |
Command %(command)s | |
Partition %(partition)s | |
TimeLimit %(timelimit)s | |
This job will not run because the total TimeLimit you have requested | |
is not available in the %(partition)s partition. | |
""", | |
} |