Cris
06/26/2020, 12:55 AMalex
06/26/2020, 2:27 PMCris
06/26/2020, 2:29 PMalex
06/26/2020, 2:31 PMsigint
to the process coordinating the run the multiprocess executor will forward the interrupt and everything should wind down and shut down correctlysigkill
or sigterm
- the unwind code wont run and you’ll have to chase the orphan processes like you mentionedCris
06/26/2020, 2:32 PMalex
06/26/2020, 2:34 PMCris
06/26/2020, 2:35 PMalex
06/26/2020, 2:35 PMdagster api execute_run
Cris
06/26/2020, 2:35 PMalex
06/26/2020, 2:35 PMCris
06/26/2020, 2:37 PMalex
06/26/2020, 2:40 PMCris
06/26/2020, 4:29 PMalex
06/26/2020, 4:34 PMinstance = DagsterIntance.get()
run = instance.get_run_by_id(bad_state_run_id)
instance.report_run_failed(run)
Cris
06/26/2020, 4:35 PMalex
06/26/2020, 5:11 PMDagsterInstance.get()
will use the dagster.yaml
in $DAGSTER_HOME
, as long as you are talking to right run_storage
you can do what you need
You should be able to see the run ids in dagit
,Cris
06/26/2020, 5:12 PMalex
06/26/2020, 5:14 PMall_runs = instance.get_runs()
and then just poke at the PipelineRun
s to decide what to do