Skip to content

Commit

Permalink
add: matrix template, makefile, version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jager,Petar committed Jul 1, 2022
1 parent 7069ded commit 59af808
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ installdir=build/goslmailer-$(version)
# list of files to include in build
bins=$(notdir $(bindirs))
readme=README.md
templates=templates/adaptive_card_template.json templates/telegramTemplate.html
templates=templates/adaptive_card_template.json templates/telegramTemplate.html templates/matrix_template.md
config=cmd/goslmailer/goslmailer.conf.annotated_example cmd/gobler/gobler.conf

# can be replaced with go test ./... construct
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.0
v2.3.0
Binary file modified images/matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions templates/matrix_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---

## {{ .Job.MailSubject }} ({{ .Job.SlurmEnvironment.SLURM_JOB_NAME }}) {{ .Job.SlurmEnvironment.SLURM_JOB_MAIL_TYPE }}
Created {{ .Created }}
{{ if ne .Job.PrunedMessageCount 0 }}
WARNING: Rate limiting triggered. {{ .Job.PrunedMessageCount }} additonal notificiations have been suppressed
{{ end }}

#### Details

- **Job Name** : {{ .Job.SlurmEnvironment.SLURM_JOB_NAME }}
- **Job ID** : {{ .Job.SlurmEnvironment.SLURM_JOB_ID }}
- **User** : {{ .Job.JobStats.User }}
- **Partition** : {{ .Job.JobStats.Partition }}
- **Nodes Used** : {{ .Job.JobStats.NodeList }}
- **Cores** : {{ .Job.JobStats.Ncpus }}
- **Job state** : {{ .Job.SlurmEnvironment.SLURM_JOB_STATE }}
{{- if ne .Job.SlurmEnvironment.SLURM_JOB_STATE "RUNNING" }}
- **Exit Code** : {{ .Job.SlurmEnvironment.SLURM_JOB_EXIT_CODE_MAX }}
{{- end }}
- **Submit** : {{ .Job.JobStats.Submittime }}
- **Start** : {{ .Job.JobStats.Starttime }}
{{- if ne .Job.SlurmEnvironment.SLURM_JOB_STATE "RUNNING" }}
- **End** : {{ .Job.JobStats.Endtime }}
{{- end }}
- **Res. Walltime** : {{ .Job.JobStats.WalltimeStr }}
{{- if ne .Job.SlurmEnvironment.SLURM_JOB_MAIL_TYPE "Began" }}
- **Used Walltime** : {{ .Job.SlurmEnvironment.SLURM_JOB_RUN_TIME }}
{{- if ne .Job.SlurmEnvironment.SLURM_JOB_STATE "RUNNING" }}
- **Used CPU time** : {{ .Job.JobStats.TotalCPUStr }}
- **% User (Comp)** : {{ printf "%5.2f%%" .Job.JobStats.CalcUserComputePercentage }}
- **% System (I/O)** : {{ printf "%5.2f%%" .Job.JobStats.CalcSystemComputePercentage }}
{{- end }}
{{- end }}
- **Memory Requested** : {{ .Job.JobStats.ReqMem | humanBytes }}
{{- if ne .Job.SlurmEnvironment.SLURM_JOB_MAIL_TYPE "Began" }}
- **Max Memory Used** : {{ .Job.JobStats.MaxRSS | humanBytes }}
- **Max Disk Write** : {{ .Job.JobStats.MaxDiskWrite | humanBytes }}
- **Max Disk Read** : {{ .Job.JobStats.MaxDiskRead | humanBytes }}
{{- end }}

{{- range .Job.Hints }}
- {{ . }}

{{- end }}

---

0 comments on commit 59af808

Please sign in to comment.