Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
b1286e7f
Unverified
Commit
b1286e7f
authored
Nov 21, 2025
by
Biswa Panda
Committed by
GitHub
Nov 22, 2025
Browse files
fix: health check endpoint (#4522)
parent
f05f7629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
lib/runtime/src/pipeline/network/ingress/http_endpoint.rs
lib/runtime/src/pipeline/network/ingress/http_endpoint.rs
+5
-3
lib/runtime/src/pipeline/network/ingress/shared_tcp_endpoint.rs
...ntime/src/pipeline/network/ingress/shared_tcp_endpoint.rs
+7
-1
No files found.
lib/runtime/src/pipeline/network/ingress/http_endpoint.rs
View file @
b1286e7f
...
...
@@ -85,13 +85,15 @@ impl SharedHttpServer {
notify
:
Arc
::
new
(
Notify
::
new
()),
});
// Set health status
// Insert handler FIRST to ensure it's ready to receive requests
let
subject_clone
=
subject
.clone
();
self
.handlers
.insert
(
subject
,
handler
);
// THEN set health status to Ready (after handler is registered and ready)
system_health
.lock
()
.set_endpoint_health_status
(
&
endpoint_name
,
HealthStatus
::
Ready
);
let
subject_clone
=
subject
.clone
();
self
.handlers
.insert
(
subject
,
handler
);
tracing
::
debug!
(
"Registered endpoint handler for subject: {}"
,
subject_clone
);
Ok
(())
}
...
...
lib/runtime/src/pipeline/network/ingress/shared_tcp_endpoint.rs
View file @
b1286e7f
...
...
@@ -77,13 +77,19 @@ impl SharedTcpServer {
namespace
,
component_name
,
endpoint_name
:
endpoint_name
.clone
(),
system_health
,
system_health
:
system_health
.clone
()
,
inflight
:
Arc
::
new
(
AtomicU64
::
new
(
0
)),
notify
:
Arc
::
new
(
Notify
::
new
()),
});
// Insert handler FIRST to ensure it's ready to receive requests
self
.handlers
.insert
(
endpoint_path
,
handler
);
// THEN set health status to Ready (after handler is registered and ready)
system_health
.lock
()
.set_endpoint_health_status
(
&
endpoint_name
,
crate
::
HealthStatus
::
Ready
);
tracing
::
info!
(
"Registered endpoint '{}' with shared TCP server on {}"
,
endpoint_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment