Commit graph

4 commits

Author SHA1 Message Date
42d3251251 Fix misrouted notifications from SQLite lock contention
send_message silently fell back to the default conversation whenever the
plan-time or slack-channel lookup errored, because the query error was
ignored. A transient "database is locked" (from the channel-creation/sync
routine holding the write lock while making slow Slack API calls) thus
misrouted a service notification to the admin DM instead of the event
channel.

- api.go: capture lookup errors and only treat gorm.ErrRecordNotFound as
  "no service / no channel"; on any other error, fail so the caller retries
  rather than posting to the wrong conversation.
- database.go: open SQLite with WAL journaling and a 10s busy timeout so
  reads proceed alongside the sync writer instead of locking.
- Bump version to 0.2.2.
2026-06-21 10:19:41 -05:00
6857622c26 Replace fatal errors with non-fatal logging to improve resilience
Version bump to 0.2.1. Changed log.Fatalln calls to log.Println with
continue/return so that individual API errors no longer crash the
entire service.
2026-03-22 10:38:42 -05:00
2354e60b3d Added support for creating slack channels with reference to a weekday, added support for specifying users to always add to a channel, maybe more? 2023-10-01 07:58:52 -05:00
e6ef66194e First commit 2023-09-09 22:39:48 -05:00