diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index ed97a01..51153ab 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -49,6 +49,10 @@ func (m *Manager) Loop(ctx context.Context) error { tokenRefreshTicker := time.NewTicker(TargetTokenInterval) defer tokenRefreshTicker.Stop() + if err := m.doTargetToken(ctx); err != nil { + logger.Logf(false, "failed to refresh token in initialize: %+v", err) + } + for { select { case <-tokenRefreshTicker.C: