https://dagster.io/ logo
#ask-community
Title
# ask-community
p

Peter Skipper

11/10/2022, 11:31 PM
What is the current best practice for reexecuting a pipeline? I want to restart my pipeline from a specific step that failed. I can find a description on Stack Overflow here , but I cannot import
reexecute_pipeline
from dagster 1.0.15, which makes me think there is now another way?
y

yuhan

11/10/2022, 11:43 PM
https://docs.dagster.io/_apidocs/execution#dagster.execute_job
Copy code
from dagster import ReexecutionOptions, execute_job

instance = DagsterInstance.get()

options = ReexecutionOptions.from_failure(run_id=failed_run_id, instance)
execute_job(reconstructable(job), instance, reexecution_options=options)
🙏 1
17 Views