https://dagster.io/ logo
Title
j

Jakub Zgrzebnicki

12/02/2022, 11:59 AM
Hi, Im running dagit(1.1.3) on port 8081 and dagster api grpc repository on port 8080. I have some jobs that are created dynamically and on start of the api server they are loaded correctly and shown in dagit but when running reload repository or using
client.reload_repository_location('dagster_repo')
I cant see nothing in logs. When running any job I can see in logs information what jobs are created but they are not updated on UI only when I restart the server. Is there a bug in reload repository or am I missing something?
d

daniel

12/02/2022, 12:02 PM
Hi Jakub - when you’re running your own gRPC server you will need to restart the gRPC server process yourself in order for your code to reload. This is a known rough edge that we’d like to improve in the future though.
If you return a custom RepositoryData object from your repository as described in option 3 here, that’s one way to re-generate your jobs without restarting the server: https://docs.dagster.io/_apidocs/repositories#dagster.repository
❤️ 1
j

Jakub Zgrzebnicki

12/05/2022, 9:20 AM
Is there any issue that I can follow that aim to improve that functionality?
d

daniel

12/05/2022, 3:12 PM
There's an issue here yeah: https://github.com/dagster-io/dagster/issues/4387
👍 1
:dagster: 2