Hi guys, we are using aws fargate to launch dagste...
# ask-community
y
Hi guys, we are using aws fargate to launch dagster (we are using 1.3.9), and we have different container for dagit and code location. We want to run multiple shell command (refresh manifest file for dbt project in code location) when click reload on UI, what is the best way to do that? shell commands:
Copy code
subprocess_log_run(f"git -C {git_repo_path} fetch")
subprocess_log_run(f"git -C {git_repo_path} reset --hard origin/{branch_name}")
subprocess_log_run(f"dbt compile --project-dir {git_repo_path}")
currently we implement those commands in our dbt process, but noticed that those commands got triggered during other pipelines, cannot figure our what may cause the issue. Thanks for the help!
d
Hi yuan - if you want to run that code whenever the code location is reloaded in the UI, you could potentially use the new experimental
dagster code-server start
command described here: https://github.com/dagster-io/dagster/discussions/14709
y
Thanks a lot!