-
Notifications
You must be signed in to change notification settings - Fork 294
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
Fix heartbeat for short-running WorkerServices #2762
base: main
Are you sure you want to change the base?
Conversation
How could I get this one reviewed? |
get => this.firstInterval; | ||
set | ||
{ | ||
this.firstInterval = value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some bounds checking? At least make sure it's not negative (less than TimeSpan.Zero)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea 👍
/// <summary> | ||
/// Gets or sets the currently defined interval of the first heartbeat. Defaults to 1 second. | ||
/// </summary> | ||
public TimeSpan HeartbeatFirstInterval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial... Is maybe a better term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InitialHeartbeatDelay
Changes
Fixes the heartbeat by sending the first heartbeat af 1 second instead of 30.
This is configurable
Fixes #2759
Checklist
The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.
Notes for reviewers:
/AzurePipelines run
will queue all builds/AzurePipelines run <pipeline-name>
will queue a specific build