Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ogp-weeloong committed Apr 18, 2024
1 parent f05b4a7 commit f42936c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/backend/src/apps/m365-excel/common/rate-limiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ export async function throttleStepsForPublishedPipes(

throw new RetriableError({
error: 'Reached M365 step limit',
// IF we're rate limited, we're probably facing a spike of steps, so spread out
// retries over a wider time period to reduce the size of the thundering herd.
// If we're rate limited, we're probably facing a spike of steps for that
// file, so spread out retries over a wider time period (2x) to reduce the
// size of the retry thundering herd.
delayInMs: P90_EXCEL_API_RTT_SECONDS * 1000 * 2,
})
}
Expand Down

0 comments on commit f42936c

Please sign in to comment.