feat: add generic queue and subscription retirement

This commit is contained in:
2026-09-27 14:39:49 +08:00
parent d54bdd9847
commit c9e877c3f7
53 changed files with 1013 additions and 88 deletions

View File

@@ -90,7 +90,7 @@ func (s *ConsoleApplicationStore) GetScope(ctx context.Context, t auth.Token, af
if err != nil {
return err
}
query := `SELECT id,name FROM pulse_queues WHERE namespace_id=?`
query := `SELECT id,name,paused,retired_at FROM pulse_queues WHERE namespace_id=?`
args := []any{t.NamespaceID}
if after != "" {
query += ` AND id>?`
@@ -120,7 +120,7 @@ func (s *ConsoleApplicationStore) GetScope(ctx context.Context, t auth.Token, af
defer rows.Close()
for rows.Next() {
var q consoleauth.AccessQueue
if err := rows.Scan(&q.ID, &q.Name); err != nil {
if err := rows.Scan(&q.ID, &q.Name, &q.Paused, &q.RetiredAt); err != nil {
return err
}
out.Queues = append(out.Queues, q)