mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-13 13:17:52 +02:00
fix(cli): extend API healthcheck startup window
Keep one-second health probes active for slower graph imports so Compose does not stall for the steady-state interval. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
co-authored by
open-swe[bot] <open-swe@users.noreply.github.com>
parent
f899af1c73
commit
8e05912899
@@ -258,7 +258,7 @@ def compose_as_dict(
|
||||
"test": "python /api/healthcheck.py",
|
||||
"interval": "60s",
|
||||
"start_interval": "1s",
|
||||
"start_period": "10s",
|
||||
"start_period": "60s",
|
||||
}
|
||||
|
||||
# Final compose dictionary with volumes included if needed
|
||||
|
||||
@@ -122,7 +122,7 @@ services:
|
||||
test: python /api/healthcheck.py
|
||||
interval: 60s
|
||||
start_interval: 1s
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
|
||||
pull_policy: build
|
||||
build:
|
||||
@@ -232,7 +232,7 @@ services:
|
||||
test: python /api/healthcheck.py
|
||||
interval: 60s
|
||||
start_interval: 1s
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
|
||||
|
||||
develop:
|
||||
|
||||
@@ -71,7 +71,7 @@ def test_compose_with_custom_db_and_healthcheck():
|
||||
test: python /api/healthcheck.py
|
||||
interval: 60s
|
||||
start_interval: 1s
|
||||
start_period: 10s"""
|
||||
start_period: 60s"""
|
||||
assert clean_empty_lines(actual_compose_str) == expected_compose_str
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user