Skip to content

Commit 9afcb99

Browse files
committed
update lastAttemp
1 parent bb45914 commit 9afcb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/Providers/AWSCloudWatchProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class AWSCloudWatchProvider implements LoggingProvider {
5858
private _maxRetries = 5;
5959
private _retryCount;
6060
private _lastAttemptTime: number = 0;
61-
private _resetInterval: number = 1 * 60 * 1000; // 1 minutes
61+
private _resetInterval: number = 3 * 60 * 1000; // 1 minutes
6262

6363
constructor(config?: AWSCloudWatchProviderOptions) {
6464
this.configure(config);
@@ -506,6 +506,7 @@ class AWSCloudWatchProvider implements LoggingProvider {
506506

507507
try {
508508
if (this._getDocUploadPermissibility()) {
509+
this._lastAttemptTime = now;
509510
await this._safeUploadLogEvents();
510511
this._retryCount = 0; // Reset on success
511512
if (this._retryCount > 0) {

0 commit comments

Comments
 (0)