Scheduled token refresh failing

I am using the Kubernetes auth method with Vault. The “client_token” lease duration is 1 hr. The library itself calls the “renew-self” API in. “”. However in my case as soon as the renewal is scheduled, executor service is shutting down.
Below is the logs in order

  • Initializing ExecutorService ‘vaultThreadPoolTaskScheduler’
  • Scheduling Token renewal
  • Shutting down ExecutorService ‘vaultThreadPoolTaskScheduler’

This all is happening instantly. Can someone guide me here?
From the code it seems that executor service will shutdown when the BeanFactory destroys the task executor instance.