aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-06-18 08:42:07 -0400
committerXe Iaso <me@xeiaso.net>2023-06-18 08:42:07 -0400
commit7680e8cc7822f0d2b0aee93666011082ff82bfeb (patch)
tree595a8f4e33adfb0c56b4c87d7793f7037bc1b802 /cmd
parent8d7856674e15086f347fbd7469e784017bc3d91a (diff)
downloadx-7680e8cc7822f0d2b0aee93666011082ff82bfeb.tar.xz
x-7680e8cc7822f0d2b0aee93666011082ff82bfeb.zip
cmd/marabot: flush jobs when shutting down
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/marabot/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/marabot/main.go b/cmd/marabot/main.go
index e7fb608..bbf6e65 100644
--- a/cmd/marabot/main.go
+++ b/cmd/marabot/main.go
@@ -141,6 +141,8 @@ func main() {
case <-sc:
ln.Log(ctx, ln.Info("shutting down"))
cancel()
+ mr.attachmentPreprocess.Flush()
+ mr.attachmentUpload.Flush()
time.Sleep(150 * time.Millisecond)
return
}