Max_episode_steps warning

Hello,
I am writing to ask a question about RLlib.
I am creating a Customized Environment in Ray. Whenever I start training of the agent, the simulation outputs show this message:
“Your env doesn’t have a .spec.max_episode_steps attribute.” !!
_get_slice_indices has been deprecated. This will raise an error in the future!”

Even though I have defined max_episode_steps in configuration (i.e., horizon or soft_horizon).

I would appreciate it if you could help me to solve these problems.

Thanks,

This looks like a duplicate of Max_episode_steps attribute in customized environment .