Skip to content

Commit a56cb78

Browse files
authored
added back the db update for retry (#334)
1 parent b70454e commit a56cb78

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/worker/tasks/retryTx.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const retryTx = async () => {
5858
logger.worker.warn(
5959
`[Transaction] [${tx.id}] ${tx.chainId} chain gas price is higher than maximum threshold.`,
6060
);
61+
6162
return;
6263
}
6364

@@ -81,6 +82,18 @@ export const retryTx = async () => {
8182
`[Transaction] [${tx.id}] Failed to retry with error - ${err}`,
8283
);
8384

85+
await updateTx({
86+
pgtx,
87+
queueId: tx.id,
88+
data: {
89+
status: TransactionStatusEnum.Errored,
90+
errorMessage:
91+
err?.message ||
92+
err?.toString() ||
93+
`Failed to handle transaction`,
94+
},
95+
});
96+
8497
return;
8598
}
8699

0 commit comments

Comments
 (0)