Howdy - my code is organized into a single code lo...
# ask-community
l
Howdy - my code is organized into a single code location, shared over gRPC via something like
dagster api grpc -f repositories.py
where the repositories file contains multiple
Repository
objects to group various things logically. I would like to move forward with the
Definitions
objects instead, but if only one
Definitions
object can live in a file, it looks like i would have to run separate gRPC servers for each one. How can I have a single gRPC server hold multiple
Definitions
? Can I point to multiple files like
dagster api grpc -f project_1/defs.py -f project_2/defs.py -f project_3/defs.py
?
d
Hi Lee - there's a create_repository_using_definitions_args function that can let you have the best of both worlds here (the syntax of Definitions, but still have multiple repositories in a single gRPC server): https://docs.dagster.io/_apidocs/definitions#dagster.create_repository_using_definitions_args
❤️ 1
l
beautiful-dear-god-its-beautiful.gif
Daniel the Man... iel... some S-tier tech support right there, thank you very much sir.