FN-5778: throttle OAuth expiry notifications per provider
Limit repeated oauth-token-expired alerts by enforcing a per-provider minimum notification interval. - add a 12-hour default min notify interval to OAuthExpiryMonitor and track last notification time by provider - skip dispatch when a provider was already notified within the configured window, even if expiry timestamps change - clear per-provider notification timestamps when no OAuth providers are configured - add regression coverage for 12-hour throttling and changed-expiry throttling behavior - add a patch changeset for @runfusion/fusion documenting the notification throttle Files changed: .changeset/fn-5778-oauth-notify-throttle.md | 5 +++ packages/engine/src/notification/__tests__/oauth-expiry-monitor.test.ts | 40 ++++++++++++++++++++++ packages/engine/src/notification/oauth-expiry-monitor.ts | 15 ++++++++ 3 files changed, 60 insertions(+) Fusion-Task-Id: FN-5778 Fusion-Task-Lineage: a9741101-e8da-4dae-ac7f-817e564b4f23
This commit is contained in:
5
.changeset/fn-5778-oauth-notify-throttle.md
Normal file
5
.changeset/fn-5778-oauth-notify-throttle.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Throttle `oauth-token-expired` notifications to at most once per provider every 12 hours, even when the credential `expires` timestamp changes across refreshes/replacements.
|
||||
Reference in New Issue
Block a user