Skip to content

Commit

Permalink
fix: update any worker heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt committed Aug 1, 2024
1 parent de272d1 commit ec519ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions pkg/repository/prisma/dbsqlc/workers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ WITH to_update AS (
"Worker"
WHERE
"id" = @id::uuid
AND (
"lastHeartbeatAt" IS NULL
OR "lastHeartbeatAt" <= sqlc.narg('lastHeartbeatAt')::timestamp
)
FOR UPDATE SKIP LOCKED
)
UPDATE
Expand Down
4 changes: 0 additions & 4 deletions pkg/repository/prisma/dbsqlc/workers.sql.go

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

0 comments on commit ec519ad

Please sign in to comment.