Skip to content

feat: add restart supervisor with backoff#43

Merged
mrcrgl merged 3 commits into
mainfrom
feat/19-restart-wrapper-with-backoff
Apr 7, 2026
Merged

feat: add restart supervisor with backoff#43
mrcrgl merged 3 commits into
mainfrom
feat/19-restart-wrapper-with-backoff

Conversation

@mrcrgl

@mrcrgl mrcrgl commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a built-in RestartSupervisor runnable that supervises a child runnable and restarts it on failure
  • add configurable exponential backoff settings via RestartBackoff
  • keep supervisor responsive to shutdown/reload while child runs and while waiting in backoff
  • add examples/restart_supervisor.rs and document it in README/example docs
  • include restart_supervisor in CI example runs
  • update integration tests and changelog entries for the new naming
  • remove the unreleased RestartWrapper alias

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-features -- -D warnings
  • cargo test --all
  • cargo test --no-default-features
  • timeout 30s cargo run --example simple
  • timeout 45s cargo run --example dynamic_add
  • timeout 30s cargo run --example restart_supervisor

Closes #19

@mrcrgl mrcrgl changed the title feat: add restart wrapper with backoff feat: add restart supervisor with backoff Apr 7, 2026
@mrcrgl mrcrgl marked this pull request as ready for review April 7, 2026 12:23
@mrcrgl mrcrgl merged commit a541bea into main Apr 7, 2026
3 checks passed
@mrcrgl mrcrgl deleted the feat/19-restart-wrapper-with-backoff branch April 7, 2026 12:23
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.

Wrapper process to restart failed processes with back-off

1 participant