How can I use the cli correctly? #20386
-
|
Hi, As the title asks, I created a project based on the documentation and ran it, and then I found the cli command in the dagster documentation API class. I tried to debug my project using the cli, but I found that using the cli (e.g. dagster job execute -m project1 --job test1_job) generated a completely new instance, I can't find these requests in the dagster websever which I have run. What should I do?I want to run multiple jobs through cli commands and have them reflect on the dagster core or dagster ui that I have already run. I want to use this to investigate how dagster schedules multiple job requests. Look forward to hearing from you. Any reply will be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
To ensure that job executions from the CLI are reflected in the Dagster UI, you need to make sure that both the CLI and the Dagster UI (webserver) are using the same Dagster instance. This is typically managed by setting the
|
Beta Was this translation helpful? Give feedback.
-
|
Is it possible to configure the CLI to use a self-hosted dagster on K8s? |
Beta Was this translation helpful? Give feedback.
To ensure that job executions from the CLI are reflected in the Dagster UI, you need to make sure that both the CLI and the Dagster UI (webserver) are using the same Dagster instance. This is typically managed by setting the
DAGSTER_HOMEenvironment variable to point to the same directory for both processes.Set the
DAGSTER_HOMEEnvironment Variable: Ensure that theDAGSTER_HOMEenvironment variable is set to the same location in the environment where you're running the Dagster webserver and the CLI commands. This environment variable tells Dagster where to store instance-related data, including run history, event logs, and configuration.Check the Instance Configuration: Verify that …