Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/ismayilov ismayil/add delay when message null #4456

Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
5473594
Added telemetry classes to produce inline publish functionality
ismayilov-ismayil Jun 23, 2023
b683b83
Clean PR and remove unnecessary changes
ismayilov-ismayil Jun 30, 2023
e717f1b
Merge branch 'master' into users/ismayilov-ismayil/apply-telemetry-on…
ismayilov-ismayil Jun 30, 2023
a98b50a
Added DI for tests
ismayilov-ismayil Jul 3, 2023
8cb87cb
Merge branch 'users/ismayilov-ismayil/apply-telemetry-on-listener' of…
ismayilov-ismayil Jul 3, 2023
291aa33
Merge branch 'master' into users/ismayilov-ismayil/apply-telemetry-on…
kirill-ivlev Jul 11, 2023
a65a6ea
sync master
ismayilov-ismayil Jul 19, 2023
eaa610c
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Aug 7, 2023
3ab5153
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Aug 16, 2023
b559af1
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Aug 21, 2023
3491c8d
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Sep 1, 2023
8350069
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Sep 3, 2023
485b301
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Sep 19, 2023
6768863
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Sep 21, 2023
2bfc25c
Merge branch 'master' of https://github.com/microsoft/azure-pipelines…
ismayilov-ismayil Oct 1, 2023
2b3d40b
Add delay when ADO returns null message for any reason
ismayilov-ismayil Oct 1, 2023
8182e95
Cleanup PR
ismayilov-ismayil Oct 1, 2023
da3a00c
Merge branch 'master' into users/ismayilov-ismayil/add_delay_when_mes…
ismayilov-ismayil Oct 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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