Skip to content

Commit 39a0081

Browse files
authored
fix(ingest): increasing default ingestion REST timeout to 30 seconds (#3095)
1 parent 872215d commit 39a0081

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

metadata-ingestion/sink_docs/datahub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Note that a `.` is used to denote nested fields in the YAML recipe.
3535
| Field | Required | Default | Description |
3636
| -------- | -------- | ------- | ---------------------------- |
3737
| `server` | ✅ | | URL of DataHub GMS endpoint. |
38-
| `timeout_sec` | | 2 | Per-HTTP request timeout. |
38+
| `timeout_sec` | | 30 | Per-HTTP request timeout. |
3939

4040
## DataHub Kafka
4141

metadata-ingestion/src/datahub/emitter/rest_emitter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def _make_curl_command(
3939

4040

4141
class DatahubRestEmitter:
42-
DEFAULT_CONNECT_TIMEOUT_SEC = 10 # 10 seconds should be plenty to connect
42+
DEFAULT_CONNECT_TIMEOUT_SEC = 30 # 30 seconds should be plenty to connect
4343
DEFAULT_READ_TIMEOUT_SEC = (
44-
2 # Any ingest call taking longer than 2 seconds should be abandoned
44+
30 # Any ingest call taking longer than 30 seconds should be abandoned
4545
)
4646

4747
_gms_server: str

0 commit comments

Comments
 (0)