Hey all, I was looking at the `resume` command fo...
# ask-metaflow
f
Hey all, I was looking at the
resume
command for resuming flows from an intermediate step. Is there a way to force re-run of a step in the flow even if it was successful in the original run that I'm resuming? My use case is that I want to re-run the last few steps (with modified code) in a flow without having to run the full flow again
1
a
yep -
python flow.py resume <step-name>
if you want to resume a specific run
python flow.py resume --origin-run-id <run-id>
and you can combine both of them as well
f
Yes I was looking at the documentation for that but it seems that if the step had succeeded in the original flow, it wouldn't be re-run when I resume.
Copy code
Resuming uses the flow and step names to decide what results can be reused. This means that the results of previously successful steps will get reused even if you change their step code. You can add new steps and alter code of failed steps safely with resume
a
if you don't specify a step - we resume from the failed step, otherwise we resume from the specified step
f
What if the specified step did succeed in the original flow? Would it be re-run when I resume? (I want that and all subsequent steps to be rerun)
a
yep - it will be re-run
f
thanks that worked. Another question is about specifying flow
Parameters
with the resume command - I tried to specify flow params in the cli but it doesn't recognize the option and fails. Any workaround to this?
a
Parameters are immutable - if you change the value of a parameter, it is likely that the state for your non-resumed steps will change