Skip to content

Commit

Permalink
docs for gRPC sever timeout flag (#7400)
Browse files Browse the repository at this point in the history
Test Plan: View docs page
  • Loading branch information
gibsondan committed Apr 13, 2022
1 parent e615623 commit f38e1c3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/content/deployment/dagster-instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -791,3 +791,16 @@ For more information on how and why we use telemetry, please visit the <Link hre
telemetry:
enabled: false
```

### Code servers

The `code_servers` key lets you configure how Dagster loads the code in your [workspace](/concepts/repositories-workspaces/workspaces).

When you aren't [running your own gRPC server](/concepts/repositories-workspaces/workspaces#running-your-own-grpc-server), Dagit and the Dagster Daemon load your code from a gRPC server running in a subprocess. By default, if your code takes more than 60 seconds to load, Dagster will assume that it is hanging and stop waiting for it to load. If you expect that your repository code will take longer than 60 seconds to load, you can set the `local_startup_timeout` key:

```yaml file=/deploying/dagster_instance/dagster.yaml startafter=start_marker_code_servers endbefore=end_marker_code_servers
# Configures how long Dagster waits for repositories
# to load before timing out.
code_servers:
local_startup_timeout: 120
```
Original file line number Diff line number Diff line change
Expand Up @@ -604,3 +604,12 @@ telemetry:
enabled: false

# end_marker_telemetry

# start_marker_code_servers

# Configures how long Dagster waits for repositories
# to load before timing out.
code_servers:
local_startup_timeout: 120

# end_marker_code_servers
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
snapshots = Snapshot()

snapshots["test_instance_yaml 1"] = [
"code_servers",
"compute_logs",
"event_log_storage",
"local_artifact_storage",
Expand Down

1 comment on commit f38e1c3

@vercel
Copy link

@vercel vercel bot commented on f38e1c3 Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.