Batch job fails mid-run due to token expiry

Running a Python script to process 5k entities via Data Actions. The OTel span shows the initial auth is fine, but after 12 minutes the batch crashes with 401 Unauthorized. The access token expires at 15 mins. I’ve tried calling client.refresh_access_token() in a loop, but it seems to block the main thread. Is there a non-blocking way to refresh the token in the genesys-cloud-platform-client SDK without dropping the active spans?