# Number of training steps inside a gym env

**URL:** https://discuss.ray.io/t/number-of-training-steps-inside-a-gym-env/7090
**Category:** RLlib
**Created:** [August 5, 2022, 9:35am UTC](https://discuss.ray.io/t/number-of-training-steps-inside-a-gym-env/7090 "2022-08-05T09:35:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![martin\_axt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/martin_axt/32/2973_2.png) [@martin\_axt](https://discuss.ray.io/u/martin_axt)
#### Post date: [August 5, 2022, 9:35am UTC](https://discuss.ray.io/t/number-of-training-steps-inside-a-gym-env/7090/1 "2022-08-05T09:35:36Z")

</div>

Hey!  
I’d like to get for every call to `reset()` inside my custom gym env the value of the total number of training steps. I’ve tried calling to `get_global_worker()` to get the current policy and the value of `global_timesteps` but it seems that `policy_map` is not defined inside that RolloutWorker.

How could I access the value?

Thank you!  
Martin.
