Is it possible not to log into dagit, a job run by...
# ask-community
d
Is it possible not to log into dagit, a job run by the Dagster CLI
dagster job execute
?
j
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
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
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
changing
DAGSTER_HOME
did the work, thanks! 🤙