-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgobler.toml
executable file
·65 lines (60 loc) · 2.11 KB
/
gobler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# gobler annotated configuration file
#
# note: configuration file syntax is the same as from goslmailer, only the differences are commented here
#
logfile = "/tmp/goslmailer.log"
defaultconnector = "msteams"
[binpaths]
sacct="/usr/bin/sacct"
sstat="/usr/bin/sstat"
[connectors.msteams]
name = "gobler.conf"
renderToFile = "no"
spoolDir = "/tmp"
adaptiveCardTemplate = "/etc/slurm/adaptive_card_template.json"
url = "https://msteams/webhook/url"
useLookup = "GECOS"
#
# Gobler specific configuration, set this in every connector config that supports, and is used with spooling enabled.
#
# monitor period, now often will `monitor` goroutine scan the spoolDir for new gobs (if "ms" is omitted, default T is in seconds)
monitorT = "20000ms"
#
# picker period, now often will `picker` goroutine pick the next message to send to `sender`
# Tune depending on the endpoint throughput capability.
# note: sender picks up and tries to send the message immediately, so this determines how fast are the messages sent out.
pickerT = "5000ms"
#
# picker-sender buffer length
# How many undelivered messages can the `picker` send to `sender` without blocking.
# Tune depending on the endpoint throughput capability.
psBufLen = "3"
#
# number of `sender` goroutines
# Multiple `sender`s can wait for messages from the `picker`.
# Tune depending on the endpoint throughput capability.
numSenders = "4"
#
# maximum messages per user
# On receipt of new messages from the `monitor`, `picker` will scan the list and delete latest messages above this limit.
# The number of deleted messages is recorded in the messagepack structure and can be referenced like this: `{{ .Job.PrunedMessageCount }}`
# in the template to notify user that some of his messages were deleted.
# Unlimited if this is set to 0.
maxMsgPU = "5"
[connectors.telegram]
name = "telegram bot connector"
url = ""
token = "PasteHereTelegramBotToken"
renderToFile = "no"
spoolDir = "/tmp/telegramgobs"
messageTemplate = "/etc/slurm/telegramTemplate.md"
useLookup = "no"
format = "HTML"
monitorT = "5000ms"
pickerT = "1000ms"
psBufLen = "3"
numSenders = "3"
maxMsgPU = "6"
[connectors.textfile]
path = "/tmp"