Skip to content

Commit

Permalink
simplify SELECT statement
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Aug 23, 2024
1 parent b791ce8 commit 6ecf04c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 52 deletions.
2 changes: 1 addition & 1 deletion backend/controller/sql/querier.go

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

15 changes: 1 addition & 14 deletions backend/controller/sql/queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -597,20 +597,7 @@ FROM async_calls
WHERE id = @id;

-- name: GetZombieAsyncCalls :many
SELECT
id,
origin,
scheduled_at,
verb,
catch_verb,
request,
remaining_attempts,
error,
backoff,
max_backoff,
parent_request_key,
trace_context,
catching
SELECT *
FROM async_calls
WHERE state = 'executing'
AND lease_id IS NULL
Expand Down
49 changes: 12 additions & 37 deletions backend/controller/sql/queries.sql.go

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

0 comments on commit 6ecf04c

Please sign in to comment.