Hello everyone, I’m a beginner in Dagster and I’m ...
# ask-community
r
Hello everyone, I’m a beginner in Dagster and I’m having an issue where I can’t see my jobs in the Dagit UI after defining them. I’ve tried many methods but still can’t figure out the reason. I’m hoping to get some help from experts. Thank you. My dagster version is : dagster, version 1.3.3
🤖 1
WX20230509-155359@2x.png
g
How are you launching dagit? Have you tried
dagster dev -f my_file.py
?
r
I started Dagster with “dagster -dev”, which loaded the “*init*.py” file in my uploaded image. The assets and DBT resources defined in this file are visible, but the jobs are not showing up. Thanks.❤️
👀 1
g
I’m having trouble recreating the error - your code location is loading fine without any errors?
also I see that you have
Defintions
imported, do you get the same issue when using the
Definitions
method of defining the code location?
d
Hi @Run Feng Cao, if I interpret this correctly, you are still using a
repository
, but you should rather switch to
Definitions
if you are using a newer Dagster Version: https://docs.dagster.io/concepts/code-locations I see you import
Definitions
, but don't use it. It would be needed for Dagster to know about your jobs, assets etc.
g
Repositories should still work but, like David says:
Definitions
are the preferred way to define code locations
s
I’m not replicating this issue (though I’m not using exactly your code). I suggest two things: •
dagster dev -f my_file.py
, where
my_file.py
is the code you posted • As others are saying, please try with
Definitions
.
r
Thank you everyone, I have resolved this issue using Definitions. Thank you.
daggy love 2