def _step_ids_for_job(steps, job_key):
 step_ids = []
 for step in steps:
  if step.name.startswith(job_key):
   step_ids.append(step.id)
 return step_ids

def _step_ids_for_job ( steps , job_key ) : step_ids = [ ] for step in steps : if step . name . startswith ( job_key ) : step_ids . append ( step . id ) return step_ids
given a list of steps for a cluster .