Skip to content

Commit

Permalink
Use default job priority
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Feb 13, 2025
1 parent a485faf commit 8fc36ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/paidAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@ export async function paidActionFailed ({ data: { invoiceId, ...args }, models,

// XXX update invoice after retry timeout for notification indicator
await models.$executeRaw`
INSERT INTO pgboss.job (name, data, retrylimit, retrybackoff, startafter, keepuntil, priority)
INSERT INTO pgboss.job (name, data, retrylimit, retrybackoff, startafter, keepuntil)
VALUES ('retryTimeout',
jsonb_build_object('hash', ${dbInvoice.hash}::TEXT), 21, true,
${cancelledAt}::TIMESTAMP WITH TIME ZONE + ${`${WALLET_RETRY_BEFORE_MS} milliseconds`}::interval,
${cancelledAt}::TIMESTAMP WITH TIME ZONE + ${`${2 * WALLET_RETRY_BEFORE_MS} milliseconds`}::interval, 100)`
${cancelledAt}::TIMESTAMP WITH TIME ZONE + ${`${2 * WALLET_RETRY_BEFORE_MS} milliseconds`}::interval)`

return {
cancelled: true,
Expand Down

0 comments on commit 8fc36ba

Please sign in to comment.