Justin Albinet
04/14/2023, 3:24 PMdagster dev
being able to use the workspace.yaml
?
So having a commanding like that:
dagster api grpc --workspace myproject/workspace.yaml
My need would be to use the same process with dagster dev
& dagster api grpc
(but perhaps I misunderstood something in this page)
Thanks !daniel
04/14/2023, 3:28 PMdagster api grpc
call though.
I don't totally understand your use case, can you elaborate?Justin Albinet
04/14/2023, 3:39 PMdagster api grpc --python-file docker/file1.py, docker/file2.py, docker/file3.py
My use case is to use always the same source of truth, and so to have everything in workspace.yaml
so if I want to do the same in my gRPC server I don't "forget" anything as I would have been running this file, and not added manually in my query all files it should rundaniel
04/14/2023, 3:40 PMload_from:
- grpc_server:
host: localhost
port: 4266
location_name: "my_grpc_server"
daniel
04/14/2023, 3:40 PMdagster api grpc
can only take one --python-file argument - since it only corresponds to a single code locationdaniel
04/14/2023, 3:41 PMJustin Albinet
04/14/2023, 3:57 PMworkspace.yaml
is more like this for now:
load_from:
- python_file: testPipeline/assets.py
daniel
04/14/2023, 3:57 PMJustin Albinet
04/14/2023, 4:08 PMJustin Albinet
04/14/2023, 4:10 PMdaniel
04/14/2023, 4:12 PMgrpc_server
not python_file
Justin Albinet
04/14/2023, 4:13 PMdaniel
04/14/2023, 4:13 PMJustin Albinet
04/14/2023, 4:13 PMJustin Albinet
04/14/2023, 4:13 PMJustin Albinet
04/14/2023, 4:13 PMMax Teiger
04/24/2023, 2:22 PMuser-deployments
option (is there any other way?)
That’s why we need to understand how to run grpc server.
The project’s structure is quite common I think :
.
├── README.md
├── batchAPIs.py
├── batchPipeline
│ ├── Dockerfile.prod
│ ├── README.md
│ ├── batchPipeline
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ ├── assets.py
│ │ ├── resources.py
│ │ ├── run_pipeline.py
│ │ └── testDynamicAssets.py
│ ├── batchPipeline_tests
│ │ ├── __init__.py
│ │ └── test_assets.py
│ ├── pyproject.toml
│ ├── schedules
│ │ └── schedules.db
│ ├── setup.cfg
│ ├── setup.py
│ └── workspace.yaml
├── ...
└── requirements.txt
And to launch a user deployment using your helm, as I understood, we need to launch dagster grpc api <parameters>
do you have an idea on the parameters I need to specify to launch the server ?daniel
04/24/2023, 2:24 PMMax Teiger
04/24/2023, 2:25 PM