Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable tracking the execution phase of a server #511

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theduke
Copy link

@theduke theduke commented Jan 11, 2025

Adds a way for subcribers to track the execution phase of a Server.

The new method Server::watch_execution_phase returns a broadcast
channel that will receive ExecutionPhase messages on each phase transition.

Example use cases:

  • A /health endpoint that reports the current execution phase
    (only interesting for shutdown)
  • Producing metrics for the various phase transitions

Note: This PR pairs nicely with #493

I'm happy for that to be merged first and then rebase.

If the change is acceptable, that is.

@theduke theduke force-pushed the server-phase-monitor branch 2 times, most recently from 521b794 to e334612 Compare January 11, 2025 17:39
Adds a way for subcribers to track the execution phase of a Server.

The new method `Server::watch_execution_phase` returns a broadcast
channel that will receive ExecutionPhase messages on each phase transition.

Example use cases:

* A /health endpoint that reports the current execution phase
  (only interesting for shutdown)
* Producing metrics for the various phase transitions
@theduke theduke force-pushed the server-phase-monitor branch from e334612 to 3b7b3dd Compare January 11, 2025 17:42
@theduke theduke changed the title feat: Enabling tracking the execution phase of a server feat: Enable tracking the execution phase of a server Jan 13, 2025
@gumpt gumpt added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants