Skip to content

Commit

Permalink
Merge branch 'release-1.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed May 10, 2016
2 parents 1918d41 + 5b393cb commit aad16b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ServiceControl/ExternalIntegrations/EventDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override void OnStart()
{
tokenSource = new CancellationTokenSource();
circuitBreaker = new RepeatedFailuresOverTimeCircuitBreaker("EventDispatcher",
TimeSpan.FromMinutes(2),
TimeSpan.FromMinutes(5),
ex => CriticalError.Raise("Repeated failures when dispatching external integration events.", ex),
TimeSpan.FromSeconds(20));
StartDispatcher();
Expand Down Expand Up @@ -65,6 +65,8 @@ private void DispatchEvents(CancellationToken token)
{
token.WaitHandle.WaitOne(TimeSpan.FromSeconds(1));
}

circuitBreaker.Success();
}
}

Expand Down

0 comments on commit aad16b2

Please sign in to comment.