Skip to content

Commit

Permalink
update lastAttemp
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhengshs committed Sep 16, 2024
1 parent bb45914 commit 9afcb99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/Providers/AWSCloudWatchProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AWSCloudWatchProvider implements LoggingProvider {
private _maxRetries = 5;
private _retryCount;
private _lastAttemptTime: number = 0;
private _resetInterval: number = 1 * 60 * 1000; // 1 minutes
private _resetInterval: number = 3 * 60 * 1000; // 1 minutes

constructor(config?: AWSCloudWatchProviderOptions) {
this.configure(config);
Expand Down Expand Up @@ -506,6 +506,7 @@ class AWSCloudWatchProvider implements LoggingProvider {

try {
if (this._getDocUploadPermissibility()) {
this._lastAttemptTime = now;
await this._safeUploadLogEvents();
this._retryCount = 0; // Reset on success
if (this._retryCount > 0) {
Expand Down

0 comments on commit 9afcb99

Please sign in to comment.