https://dagster.io/ logo
Title
r

Run Feng Cao

05/09/2023, 7:53 AM
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
:dagster-bot-resolve: 1
WX20230509-155359@2x.png
g

Guy McCombe

05/09/2023, 8:17 AM
How are you launching dagit? Have you tried
dagster dev -f my_file.py
?
r

Run Feng Cao

05/09/2023, 8:28 AM
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

Guy McCombe

05/09/2023, 8:40 AM
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

David Weber

05/09/2023, 9:16 AM
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

Guy McCombe

05/09/2023, 9:31 AM
Repositories should still work but, like David says:
Definitions
are the preferred way to define code locations
s

sean

05/09/2023, 12:36 PM
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

Run Feng Cao

05/10/2023, 9:00 AM
Thank you everyone, I have resolved this issue using Definitions. Thank you.
:daggy-love: 2