Skip to content

Comments

Make shutdown polling intervals configurable#75

Merged
smyrgeorge merged 1 commit intosmyrgeorge:mainfrom
darren-gibson:feature/configurable-shutdown-polling-intervals
Dec 27, 2025
Merged

Make shutdown polling intervals configurable#75
smyrgeorge merged 1 commit intosmyrgeorge:mainfrom
darren-gibson:feature/configurable-shutdown-polling-intervals

Conversation

@darren-gibson
Copy link
Contributor

This PR introduces configurable shutdown delays to the ActorSystem as described in #74. The following new configuration options are now available in ActorSystem.Conf:

  • shutdownInitialDelay
  • shutdownPollingInterval
  • shutdownFinalDelay

These settings allow fine-tuning of the shutdown process, including the initial wait, polling interval for actor termination, and final delay after shutdown.

Implementation

  • Added the above fields to ActorSystem.Conf with sensible defaults.
  • Updated the ActorSystem.shutdown() method to use these configuration values.
  • Added and refactored tests to verify:
    • The configuration values are applied correctly.
    • The shutdown operation duration reflects the configured delays.
    • Multiple test cases cover both custom and default configurations, using a shared helper to avoid code duplication.

Testing

  • All new and existing tests pass.
  • The shutdown duration is asserted to be within the expected range for both custom and default configurations.

- Add shutdownInitialDelay, shutdownPollingInterval, shutdownFinalDelay to Conf
- Update shutdown method to use configurable delays
- Add unit tests to verify behavior with different configurations
@smyrgeorge smyrgeorge merged commit 51b8616 into smyrgeorge:main Dec 27, 2025
0 of 3 checks passed
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.

2 participants