Tutorial pipeline works with dagit, errors out with dagster CLI #3222
-
I'm slowly working through tutorial examples and stumbled across something odd - the
Is there something obvious that I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We should catch this with a better error message, but to explain whats happening The environment You can read more about the "instance" here https://docs.dagster.io/overview/instances/dagster-instance#main |
Beta Was this translation helpful? Give feedback.
We should catch this with a better error message, but to explain whats happening
The environment
DAGSTER_HOME
controls where dagster will put things on the filesystem, such as marshaling data to the jupyter process for the notebook in theiris_pipeline
. If this env var is not set,dagit
will create a temporary directory to use that gets cleaned up when thedagit
process exits. Thedagster
CLI on the other hand falls back to an in memory "instance", which fails as seen above when trying to prepare the jupyter subprocess.You can read more about the "instance" here https://docs.dagster.io/overview/instances/dagster-instance#main