https://dagster.io/ logo
#ask-community
Title
# ask-community
d

Dinis Rodrigues

01/30/2023, 5:31 PM
Is it possible not to log into dagit, a job run by the Dagster CLI
dagster job execute
?
j

jamie

01/30/2023, 6:57 PM
Hi @Dinis Rodrigues just to confirm, you want to run a dagster job via the cli, but when you open up dagit you do not want to see the history of that run?
d

Dinis Rodrigues

01/30/2023, 7:01 PM
Yes, this is because of this thread where I'm trying to run jobs in test mode. The only way I'm able to do it is by running the cli. But in my dev environment, I would like to not have those job runs show in dagit.
j

jamie

01/30/2023, 7:05 PM
I see. I think the mechanism behind those jobs appearing in Dagit is
DAGSTER_HOME
being set to the same directory for both test and dev. If you changed
DAGSTER_HOME
to a different directory for your test runs they shouldn’t show up in dagit. however, that would require switching the env var back and forth and could get annoying. you could maybe make a custom alias that runs
DAGSTER_HOME=/path/to/testing/dir dagster job execute
that you can use when running the tests
d

Dinis Rodrigues

01/30/2023, 8:29 PM
changing
DAGSTER_HOME
did the work, thanks! 🤙