288
ft pollForwarderType,
289
target *tqid.NormalPartition,
291
>
policy := backoff.NewExponentialRetryPolicy(time.Second).
292
>
WithMaximumInterval(tm.config.ForwardPollRetryMaxInterval()).
293
>
WithExpirationInterval(backoff.NoInterval)
294
>
retrier := backoff.NewRetrier(policy, clock.NewRealTimeSource())
295
>
forwarderTask := newPollForwarderTask(effectivePriority, ft)
296
>
ctxs := []context.Context{ctx} // ctx should be equal to or child of tm.tqCtx
297
>
for ctx.Err() == nil {
298
>
if ft == priorityBacklogPollForwarder && !tm.config.PriorityBacklogForwarding() {
299
// if this feature has been disabled, just wait
300
_ = util.InterruptibleSleep(ctx, time.Minute)