我刚开始关注dagster 教程。我设法hello_cereal
使用 dagit 和 Python API 运行了这项工作,但由于某种原因,在尝试使用 dagster CLI 时
dagster job execute -f hello_cereal.py
我得到一个DagsterUnmetExecutorRequirementsError
:
2021-10-22 15:33:22 - dagster - ERROR - hello_cereal_job - 272b37fb-9f39-44dc-b63a-dcd3dfbb7956 - 880 - RUN_FAILURE - Execution of run for "hello_cereal_job" failed. Pipeline failure during initialization for pipeline "hello_cereal_job". This may be due to a failure in initializing the executor or one of the loggers.
dagster.core.errors.DagsterUnmetExecutorRequirementsError: You have attempted to use an executor that uses multiple processes with an ephemeral DagsterInstance. A non-ephemeral instance is needed to coordinate execution between multiple processes. You can configure your default instance via $DAGSTER_HOME or ensure a valid one is passed when invoking the python APIs. You can learn more about setting up a persistent DagsterInstance from the DagsterInstance docs here: https://docs.dagster.io/deployment/dagster-instance#default-local-behavior
确实,我没有$DAGSTER_HOME
设置,但由于它适用于 Web UI 和 Python API 版本,我想知道我是否在其他地方犯了错误?
我在 macOS BigSur (11.6) 上,在全新的 miniconda 安装 ( v4.10.3
)、Python 3.9.5 和 dagster 上0.13.0
。