diff --git a/packages/core/src/Providers/AWSCloudWatchProvider.ts b/packages/core/src/Providers/AWSCloudWatchProvider.ts index 303074d7c7b..03877e82f74 100644 --- a/packages/core/src/Providers/AWSCloudWatchProvider.ts +++ b/packages/core/src/Providers/AWSCloudWatchProvider.ts @@ -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); @@ -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) {