Skip to content

Feat/core optimizations#15

Merged
mrcrgl merged 22 commits intomainfrom
feat/core-optimizations
Jul 8, 2025
Merged

Feat/core optimizations#15
mrcrgl merged 22 commits intomainfrom
feat/core-optimizations

Conversation

@mrcrgl
Copy link
Owner

@mrcrgl mrcrgl commented Jul 7, 2025

No description provided.

mrcrgl added 22 commits July 7, 2025 13:03
Refactor Runnable trait implementations and related code to return
Arc<dyn ProcessControlHandler> instead of Box<dyn ProcessControlHandler>
for improved shared ownership and consistency across the codebase.
receiver

Refactor ProcessManager PID initialization and add manual/auto cleanup
constructors

Add Custom variant to RuntimeControlMessage for future extensibility
- Add lock-free shutdown flag and notification for efficient shutdown
waiting - Implement fan-out task to forward control messages to a single
RuntimeTicker - Provide ProcessControlHandler implementation for
RuntimeGuard handle - Simplify RuntimeTicker creation and sender cloning
- Add Clone impl for RuntimeControlMessage with panic for unsupported
Custom variant
- Simplify RuntimeGuard internals with tokio Mutex and async-friendly
channels - Change RuntimeTicker to return sender and use async Mutex for
receiver - Use Cow<'static, str> for process_name implementations -
Remove unused internal state and streamline control message forwarding
task
Set up Rust CI with build, formatting, linting, and tests across stable,
beta, and nightly toolchains. Add CHANGELOG.md with Keep-a-Changelog
format.
Introduce a fluent builder to configure ProcessManager upfront,
eliminating "wrong phase" panics and enabling compile-time safety when
registering child processes before starting the manager.
Deprecate ProcessManager constructors in favor of the builder API.
Migrate examples and tests to use ProcessManagerBuilder for setup.
Wrap process_start future with tracing::Instrument to attach a span
instead of entering it directly, enabling better async tracing support.
Introduce IdleProcess, a no-op Runnable that idles until shutdown,
useful as a tombstone child to keep ProcessManager running without real
children. Move SignalReceiver to builtin and deprecate old receiver
module.
- Store JoinHandle for each child process to monitor and abort if needed
- Improve shutdown logic to timeout after 30 seconds per child - Add
detailed logging on process start, stop, shutdown, and timeout events -
Enforce add() can only be called when manager is running - Use JoinSet
to await all shutdown futures concurrently
@mrcrgl mrcrgl merged commit 0d88bd1 into main Jul 8, 2025
3 checks passed
@mrcrgl mrcrgl deleted the feat/core-optimizations branch July 8, 2025 21:04
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.

1 participant