fix(stats): unblock deploy and register /stats in Telegram command menu

- Remove ReservedConcurrentExecutions: 1 (account lacks unreserved
  concurrency headroom; deploy rolled back). Accept best-effort
  counter semantics as documented.
- Add /stats to aws/telegram-commands.json so it appears in the
  Telegram client's / autocomplete after the next deploy.
This commit is contained in:
tiennm99 committed 2026-05-22 15:30:28 +07:00
1 parent 4f7a6d17f0
commit 7f71e3cf6f
3 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -31,7 +31,9 @@ type counter struct {
func countKey(name string) string { return countPrefix + name }
// Inc increments the persistent invocation count for the named command.
// Errors are logged and swallowed — stats are best-effort.
// Errors are logged and swallowed and concurrent invocations of the same
// command may lose updates — stats are best-effort. A future atomic
// increment (e.g. DynamoDB UpdateItem ADD) would close the race.
func (c *counter) Inc(ctx context.Context, name string) {
key := countKey(name)
var entry countEntry