File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 29
29
AND "transactionHash" IS NOT NULL
30
30
AND "retryCount" < ${ config . maxRetriesPerTx }
31
31
ORDER BY
32
- "queuedAt "
32
+ "nonce "
33
33
ASC
34
34
LIMIT
35
35
1
Original file line number Diff line number Diff line change @@ -81,18 +81,6 @@ export const retryTx = async () => {
81
81
`[Transaction] [${ tx . id } ] Failed to retry with error - ${ err } ` ,
82
82
) ;
83
83
84
- await updateTx ( {
85
- pgtx,
86
- queueId : tx . id ,
87
- data : {
88
- status : TransactionStatusEnum . Errored ,
89
- errorMessage :
90
- err ?. message ||
91
- err ?. toString ( ) ||
92
- `Failed to handle transaction` ,
93
- } ,
94
- } ) ;
95
-
96
84
return ;
97
85
}
98
86
@@ -108,7 +96,9 @@ export const retryTx = async () => {
108
96
} ,
109
97
} ) ;
110
98
111
- logger . worker . info ( `[Transaction] [${ tx . id } ] Retried` ) ;
99
+ logger . worker . info (
100
+ `[Transaction] [${ tx . id } ] Retried with hash ${ res . hash } for Nonce ${ res . nonce } ` ,
101
+ ) ;
112
102
} ,
113
103
{
114
104
timeout : 5 * 60000 ,
You can’t perform that action at this time.
0 commit comments