diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-06-18 08:42:07 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-06-18 08:42:07 -0400 |
| commit | 7680e8cc7822f0d2b0aee93666011082ff82bfeb (patch) | |
| tree | 595a8f4e33adfb0c56b4c87d7793f7037bc1b802 /cmd | |
| parent | 8d7856674e15086f347fbd7469e784017bc3d91a (diff) | |
| download | x-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.go | 2 |
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 } |
