Skip to content

heartbeat status update#217

Open
raphael-goetz wants to merge 2 commits intomainfrom
#213-heartbeat-status-update
Open

heartbeat status update#217
raphael-goetz wants to merge 2 commits intomainfrom
#213-heartbeat-status-update

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

Resolves: #213

Copilot AI review requested due to automatic review settings April 28, 2026 16:30
@github-actions
Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/draco/-/pipelines/2486059295

Status: Passed
Duration: 2 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/14127384713/artifacts/out/index.html

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements periodic “heartbeat” updates for Draco runtime status (per #213) so Aquila/Sagittarius can observe liveness while an adapter is running, rather than relying on a one-time status change.

Changes:

  • Add a configurable heartbeat interval (ADAPTER_STATUS_UPDATE_INTERVAL_SECONDS, default 30s) to periodically update runtime status while running.
  • Spawn/abort a background Tokio task in the server runner to send periodic Running updates.
  • Adjust runtime status update logging to be more concise.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
crates/base/src/runner.rs Wrap runtime status service in Arc and add a spawned heartbeat task with configurable interval and shutdown abort/await.
crates/base/src/config.rs Add adapter_status_update_interval_seconds config sourced from env with a default value.
crates/base/src/client/mod.rs Tweak runtime status update log messages and success/failure logging behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/base/src/runner.rs
Comment thread crates/base/src/client/mod.rs
Comment thread crates/base/src/client/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Draco runtime status should be changed to a heartbeat

2 participants