Is there a way to return a Metaflow run id to the ...
# ask-metaflow
g
Is there a way to return a Metaflow run id to the caller in Python subprocess.call() while the flow is still running? I am aware of --run-id-file option but it gets written to that file after the flow is completed/errored. I need that run Id while the Flow is still running.
1
v
--run-id-file
should get written immediate when the run starts. You can add a
time.sleep
in your
start
step to confirm this. You should see the file while the
start
step is sleeping
g
Thanks @straight-shampoo-11124 for the reply. That works!
and sorry for the late response.
v
great!