Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ public async Task ExecuteAsync_RenewalsKeepFailing_CancelsTheRunBeforeTheLeaseRu
}
});

var service = new BackgroundServiceTask(TaskName, _serviceProvider, TimeSpan.FromMilliseconds(200),
TimeSpan.FromSeconds(1));
//the run stops one renewal interval before the lease runs out; the delays between renewals may each come
//late on a busy machine, so the interval leaves room for that
var service = new BackgroundServiceTask(TaskName, _serviceProvider, TimeSpan.FromMilliseconds(500),
TimeSpan.FromSeconds(2));
using var cts = new CancellationTokenSource();
await service.StartAsync(cts.Token);

Expand Down
Loading