Stanley Yang
08/02/2022, 9:08 PM0.15.2
I see that the dagster code server starts and stops itself after a few minutes. I need to send a sigterm (^\
) to kill it
Terminal Output:
▶ dagit --workspace local-workspace.yml
Using temporary directory /home/ystanley/src/cdf-pipeline/tmp76vm_hsr for storage. This will be removed when dagit exits.
To persist information across sessions, set the environment variable DAGSTER_HOME to a directory to use.
0it [00:00, ?it/s]
0it [00:00, ?it/s]
INFO: Pandarallel will run on 7 workers.
INFO: Pandarallel will use Memory file system to transfer data between the main process and workers.
INFO:dagster.code_server:Started Dagster code server for file /home/ystanley/src/cdf-pipeline/cdf_pipeline/repo.py in process 3932
INFO:dagster.code_server:Shutting down Dagster code server for file /home/ystanley/src/cdf-pipeline/cdf_pipeline/repo.py in process 3932
^C^C^C^C
^C^C^C
^\[1] 3916 quit dagit --workspace local-workspace.yml
executable_path
Example workspace.yml
# This workspace file is for local development.
load_from:
- python_file:
relative_path: my_first_pipeline/repo.py
- python_file:
relative_path: my_second_pipeline/repo.py
location_name: "second_repo"
executable_path: my_second_pipeline/.venv/bin/python
If I remove second_repo
, dagit starts fine. The interesting thing is that second_repo
can be added back and loaded in after dagit
is running already.
Our current workaround is:
1. Comment out the extra repos in the workspace.yml
2. Start dagit
3. Uncomment out the extra repos
4. Go to dagit's Workspace > Reload all
The alternative workaround is just using --python-file instead of --workspacedaniel
08/03/2022, 2:32 AMStanley Yang
08/03/2022, 1:59 PM