Skip to content

Commit

Permalink
Merge branch 'master' into users/tafadnav/pipelineartdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
fadnavistanmay authored Oct 10, 2023
2 parents c8cdd8b + 81514c8 commit 5288f7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Agent.Listener/MessageListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ public async Task<TaskAgentMessage> GetNextMessageAsync(CancellationToken token)
Trace.Verbose($"No message retrieved from session '{_session.SessionId}'.");
}

_getNextMessageRetryInterval = BackoffTimerHelper.GetRandomBackoff(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(15), _getNextMessageRetryInterval);
Trace.Info("Sleeping for {0} seconds before retrying.", _getNextMessageRetryInterval.TotalSeconds);
await HostContext.Delay(_getNextMessageRetryInterval, token);
continue;
}

Expand Down

0 comments on commit 5288f7e

Please sign in to comment.