Skip to content

Commit

Permalink
pg query cancellation note
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonstreator committed Dec 22, 2023
1 parent b029031 commit 5877188
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pg/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ interface Querier {
query: Client["query"];
}

// TODO: leverage the signal option that comes in on options for `getUnprocessedEvents` and `getEventByIdForUpdateSkipLocked`
// to cancel queries if/when supported by `pg` https://github.com/brianc/node-postgres/issues/2774

export const createProcessorClient = <EventType extends string>(
querier: Querier,
table: string = "events",
Expand Down

0 comments on commit 5877188

Please sign in to comment.