Merge "[framework] Add an API to get max pause polling timeout." into main