Skip to content

Conversation

@cjjdespres
Copy link
Member

@cjjdespres cjjdespres commented Oct 18, 2025

The --stop-time-interval option sets the upper bound on the number of random hours added to the --stop-time of the daemon. It is optional, with default 9 to match the current daemon behaviour. Setting the option to 0 will disable the randomness entirely. This is useful for ensuring that daemons will stop at deterministic intervals.

I have tested this manually with several different values of the option; notably, the value 0 consistently makes the logged wait time 10080 (the default wait time of 168 hours) and the value 1 causes the wait time to be either 10080 or 10140 (168 or 169 hours).

For context, the stop time itself was added in #9387.

The --stop-time-interval option sets the upper bound on the number of
random hours added to the --stop-time of the daemon. It is optional,
with default 9 to match the current daemon behaviour.

Setting the option to 0 will disable the randomness entirely. This is
useful for ensuring that daemons will stop at deterministic intervals.
@cjjdespres cjjdespres requested a review from a team as a code owner October 18, 2025 18:53
@cjjdespres
Copy link
Member Author

!ci-build-me

Copy link
Member

@glyh glyh left a comment

Choose a reason for hiding this comment

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

I think this is good as a temporary solution. Earlier I was thinking if it's possible to:

  • Detect number of peers, if there's too few seeds, just don't shutdown
  • Replace this specific functionality with Rust to ensure 100% uptime

WDYT?

@SanabriaRusso SanabriaRusso self-requested a review October 20, 2025 10:02
@glyh
Copy link
Member

glyh commented Oct 21, 2025

Clean merge is failing. This needs to be ported to develop it seems.

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.

3 participants