hey, is there a way to get all the task ids for a ...
# ask-metaflow
s
hey, is there a way to get all the task ids for a step, this is what I'm trying to do:
task = run[step_name][task_id]
however, I can only manually find the task_id from the UI, wondering if there is a way to get all the task_ids from code.
1
d
Copy code
for task in run[step_name]:
  print(task.id)
should work. You can basically iterate over all the tasks in a step that way (the
task
is a
Task
object).
s
this is awesome!
works!
d
cool — glad to hear it 🙂
💯 1
🙏 1