Add missing context in backoff for Marathon
This commit is contained in:
parent
868ab7a5c8
commit
6dd63e1702
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.
|
||||||
notify := func(err error, time time.Duration) {
|
notify := func(err error, time time.Duration) {
|
||||||
logger.Errorf("Provider connection error %+v, retrying in %s", err, time)
|
logger.Errorf("Provider connection error %+v, retrying in %s", err, time)
|
||||||
}
|
}
|
||||||
err := backoff.RetryNotify(safe.OperationWithRecover(operation), job.NewBackOff(backoff.NewExponentialBackOff()), notify)
|
err := backoff.RetryNotify(safe.OperationWithRecover(operation), backoff.WithContext(job.NewBackOff(backoff.NewExponentialBackOff()), ctx), notify)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Cannot connect to Provider server: %+v", err)
|
logger.Errorf("Cannot connect to Provider server: %+v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue