# ask-community

Yuan Cheng

06/15/2023, 5:27 PM
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!


06/16/2023, 3:49 PM
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:

Yuan Cheng

06/16/2023, 4:52 PM
Thanks a lot!