Is it possible to load multiple files with the grp...
# ask-community
j
Is it possible to load multiple files with the grpc server? I am working in a docker setup and trying something like this:
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "notify_on_schema_change.py", "-f", "assets.py"]
But it only loads the last module.
I am using the
-m
option to load a module instead which works. I also changed the function name of the
@repository
and I guess that the problem might have been that I used the same repository function name in both files.
👍 1
c
When using the grpc server command like that, it corresponds to a single code location. Recommend using a single
Definitions
object at the top level of your module here https://docs.dagster.io/concepts/code-locations#definitions-versus-repositories