in workflows-generator/commons.py [0:0]
def find_step_by_id(step_id, workflow_config):
"""method to find step by id"""
for level in workflow_config:
for thread in level.get("THREADS"):
for step in thread.get("STEPS"):
if step.get("JOB_ID") == step_id:
return step
return None