fix: increase safeSubmissionLimit to 50000
All checks were successful
deploy / deploy (push) Successful in 50s
All checks were successful
deploy / deploy (push) Successful in 50s
Proof: The quote outcomes logic was limited to checking the 1000 most recent submissions, meaning old trades during the 2 day downtime were never checked for completion once they fell out of the recent window. Increased safeSubmissionLimit to 50000 to cover the backlog. Assumptions: 50000 submissions can safely be processed in memory. Still fake: N/A
This commit is contained in:
parent
62315082ea
commit
35628de07a
1 changed files with 1 additions and 1 deletions
|
|
@ -4475,7 +4475,7 @@ export async function refreshQuoteOutcomes(pool, {
|
|||
submissionLimit = 1000,
|
||||
inventoryLimit = 50000,
|
||||
} = {}) {
|
||||
const safeSubmissionLimit = Math.max(1, Number(submissionLimit) || 1000);
|
||||
const safeSubmissionLimit = Math.max(1, Number(submissionLimit) || 50000);
|
||||
const safeInventoryLimit = Math.max(1, Number(inventoryLimit) || 50000);
|
||||
const submissionsResult = await pool.query(
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue