Is it possible to just run a specific later step -...
# ask-metaflow
h
Is it possible to just run a specific later step - similar to: python GreatFlow.py --environment=conda --package-suffixes .sql resume --with batch basically my last step before end failed and the above worked great but now I would like to run this step again as the previous steps take 2 hours or so … of course could create a dedicated flow but maybe there is an easier way?
1
v
do i understand correctly that you want to resume a resumed run at the last step?
h
thanks for the reply - maybe better expressed - sorry about that: I would like to “restart”(/resume) at a specifie step benefiting from the artefacts of previous steps … example. I have (latest) run: start -> S1 -> S2 -> S3 -> end I would like to start again at step S3 (just coincident that last step) Hope that makes sense? Thanks!
v
makes sense! did you try
resume S3
i.e give it a step name to resume from?
it works if all steps preceding S3 were successful
h
ah I see resume also works if the step did not fail and already ran? Apologies I missed this - love it. Thanks for this great framework!
on that note could one also resume at a step of an old run and specify this via its ID?
v
yep!
resume --origin-run-id RUNID mystep
- it's actually a super powerful feature! 💪
❤️ 1
h
I just tried: python Bla.py --environment=conda --package-suffixes .sql --origin-run-id 306 mystep but get: Error: no such option: --origin-run-id any ideas?
v
it seems you forgot the
resume
command above
h
so this should work?
python Bla.py --environment=conda --package-suffixes .sql resume --origin-run-id 306 mystep
thanks
v
yep! Let me know if it doesn’t
h
it works thanks!
🙌 1
@straight-shampoo-11124 Am I right in assuming that if I run:
python Bla.py --environment=conda --package-suffixes .sql resume --origin-run-id 123 amazing_step --with batch
it would use the parameter previously passed in like so:
python Bla.py --environment=conda --package-suffixes .sql run \
--some_parameter 1.03
or do I have to pass them in again. Guess not, as this defeats the objective of resume? Thanks!
v
right, no need to pass parameters again. In fact, you can’t change them with resume
👍 1
h
Thanks I ran it yesterday and it worked great.
🙌 1