Looks like the above expression has some syntax issue. It will be
@pipeline().parameters.step_name
And if it works fine automatically without any changes to the logic most probably it should be an internment networking issue that has caused this slowness.