Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
650 B

---
- name: install the script.
copy:
src: files/find_inefficient_jobs
dest: /sbin/find_inefficient_jobs
mode: 0755
- cron:
name: Report inefficient jobs.
weekday: '0'
minute: "59"
hour: "23"
user: root
job: 'SLACK_URL={{ slack_url }} /usr/bin/python3 /sbin/find_inefficient_jobs --min-walltime 3600 --memeff-threshold 10 --cpueff-threshold 10 --min-reqmem 24 --start `date --date="1 week ago" +'%Y-%m-%dT%H:%M'` --end `date +'%Y-%m-%dT%H:%M'`'
cron_file: find_inefficient_jobs
# Don't buzz the whole team... yet
- cronvar:
name: MAILTO
value: b.e.droge@rug.nl
cron_file: find_inefficient_jobs