https://dagster.io/ logo
#announcements
Title
# announcements
s

Spandan Pyakurel

03/10/2021, 4:29 AM
Hello all, I executed pipeline using
dagster.execute_pipeline
. The execution, however wasn't displayed in dagit pipeline's runs list. Is there anything I can do to fix this?
n

Noah K

03/10/2021, 5:26 AM
You would have to run it through Dagit for Dagit to know about it 🙂
d

daniel

03/10/2021, 2:38 PM
Hi Spandan - there's an optional "instance" argument to execute_pipeline, if you've set up your DAGSTER_HOME environment variable and do something like:
Copy code
with DagsterInstance.get() as instance:
   execute_pipeline(..., instance=instance)
I'd expect the run to then show up in dagit.
p

prha

03/10/2021, 5:13 PM
We should add some better warning messages (or straight out throw an error) here in case you do have a
DAGSTER_HOME
environment variable set. I just created a github issue (https://github.com/dagster-io/dagster/issues/3817) to track this (thanks for raising this!). If you were hoping to recover the run that you executed, unfortunately that was run against an ephemeral instance and we don’t have a way to copy that against your persistent instance.
s

Spandan Pyakurel

03/16/2021, 7:03 AM
Hello @daniel and @prha. Thanks for the comment. Using instance while executing pipeline worked for me.