-
Sometimes, Dagster definitions are sourced from some place other than just code (for example, a mounted volume with a YAML file) and it's natural to want to be able to reload your definitions when that external datasource changes even though the code hasn't changed. How can you set up your Dagster deployment so that you can press "Reload" in the Dagster UI and reload your definitions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Dagster uses code servers to isolate user code from Dagster system code. When running However, many production deployments of Dagster (e.g. deploying in Docker, ECS, or Kubernetes using our Helm chart) recommend running code servers in separate containers for more isolation, using the However, in the dagster 1.3.6 release we added an experimental If you're using the Dagster Helm chart, you can use this command by replacing Note: Reloading the code from the Dagster UI makes a synchronous request to the server that waits until the code has reloaded. If your code takes a long time to load, this query can time out. The default timeout is set at 3 minutes, but can be increased by setting this value in your
or in your Helm chart:
If the request is timing out at the network level (e.g. returning a 502 error) even after increasing the Dagster time out, you may need to increase the timeout being used by the ingress into your dagster webserver (or refresh the page in the browser once the request has finished on the Dagster webserver) |
Beta Was this translation helpful? Give feedback.
-
Is there any way to get hot reloading with Dagster inside a container so you don't need to rebuild? Or is that a bad practice to even want? Either
If this is intended behavior, I was curious if anyone has written help scripts to watch the container for updates and auto rebuild. |
Beta Was this translation helpful? Give feedback.
Dagster uses code servers to isolate user code from Dagster system code. When running
dagster dev
, Dagster typically manages your code servers for you as subprocesses, and pressing the "Reload" button on the Code Locations tab in the Dagster UI will start a new code server and reload your code.However, many production deployments of Dagster (e.g. deploying in Docker, ECS, or Kubernetes using our Helm chart) recommend running code servers in separate containers for more isolation, using the
dagster api grpc
command. The only way to reload your definitions when runningdagster api grpc
separately is to restart the process, which typically requires restarting the container or pod on which it…