I've got a doozy of a question: running `dagit -f ...
# announcements
k
I've got a doozy of a question: running
dagit -f dagstermill_nb_pipeline.py
runs beautifully; it imports my other .py files and no problems all the pipelines from the repository run. I take this same file and use it with my k8s deployment with grpc and the dagit pod always fails complaining that my .py files weren't found as modules... I've attached the k8s log associated to the failed dagit pod
m
are you sure that all the files you want are present on the dagit pod, and that they have the same relative paths?
k
98% confident as i pushed a new docker image for k8s to pull, and the new image has all the files
m
is your local instance using grpc also
and if not can you enable it
k
local instance is not using grpc, i'm just running the dagit command -- how would i go about enabling grpc for a local instance?
m
is the environment variable
DAGSTER_HOME
set?
if not, can you set it to point at some directory
and make sure you have a
dagster.yaml
file in that directory with the following lines in it:
Copy code
opt_in:
  local_servers: true
or add them to the existing
dagster.yaml
k
still going smoothly with local, after adding your lines to a dagster.yaml
anything you want from the local to look at?
the command i ran was the same:
dagit -f dagstermill_nb_pipeline.py
c
could you share what you used in the
dagsterApiGrpcArgs
section of the helm values yaml?
k
dagsterApiGrpcArgs: - "-f" - "dagstermill_nb_pipeline.py" - "-a" - "gRPC_rep"
Copy code
@repository
def gRPC_rep():
    return [LDA_NB_pipeline,
            csp.parallel_simple_pipeline,
            cp.parallel_pipeline,
            p.math,
            ]
where csp, cp, and p, are imports from other local .py files
a
I think you need to set the working directory explicitly
'-d' , './'
🎉 1
we had some gnarly implicit working directory bugs and overcorrected to disallowing working directory based imports unless its explicitly set
we’ve brought the defaulting back on the user facing cli’s, but not yet the programatic cli entries
k
alex that is beautiful -- that's just what it needed! thank you all for your help!
d
Just put out a fix to make that the default behavior for grpc (much like dagit)
😻 1