File tree Expand file tree Collapse file tree
docs/metaflow/managing-flows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,26 @@ with Runner('slowflow.py', show_output=False).run(seconds=SECONDS) as running:
8888
8989Note that we set ` show_output=False ` to hide the output of the run while it executes.
9090
91+ ### Getting the run ID
92+
93+ To get the run ID of a completed (or in-progress) run, use ` running.run.id ` . The full pathspec
94+ (` FlowName/RunID ` ) is available via ` running.run.pathspec ` :
95+
96+ ``` python
97+ from metaflow import Runner
98+ with Runner(' slowflow.py' ).run() as running:
99+ print (running.run.id) # e.g. "12345"
100+ print (running.run.pathspec) # e.g. "SlowFlow/12345"
101+ ```
102+
103+ This is the same ` Run ` object you would get from [ the Client API] ( /metaflow/client ) , so you can
104+ pass the ID directly to ` Run ` to retrieve the run later:
105+
106+ ``` python
107+ from metaflow import Run
108+ run = Run(f ' SlowFlow/ { run_id} ' )
109+ ```
110+
91111### Passing parameters
92112
93113You can pass parameters to the run through the keyword arguments in ` run ` , such as ` seconds ` above.
You can’t perform that action at this time.
0 commit comments