Skip to content

Commit

Permalink
update queues with last active
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 committed Jan 30, 2025
1 parent 4d6aad0 commit a09412a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/repository/v2/sqlcv2/queue.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ SELECT
$1,
unnest(@names::text[]) AS name,
NOW()
ON CONFLICT (tenant_id, name) DO NOTHING;
ON CONFLICT (tenant_id, name) DO UPDATE
SET
last_active = NOW();

-- name: ListActionsForWorkers :many
SELECT
Expand Down
4 changes: 3 additions & 1 deletion pkg/repository/v2/sqlcv2/queue.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a09412a

Please sign in to comment.