Refactor(jd-client): replace monolithic start loop with JdcRuntime typestate machine - #633
Open
nulllpc wants to merge 1 commit into
Open
Refactor(jd-client): replace monolithic start loop with JdcRuntime typestate machine#633nulllpc wants to merge 1 commit into
nulllpc wants to merge 1 commit into
Conversation
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
3 times, most recently
from
July 20, 2026 20:22
27713eb to
45f79e5
Compare
Contributor
Author
|
A note: in the initial sketch, |
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
2 times, most recently
from
July 20, 2026 20:35
7dcc7ee to
5dd1782
Compare
nulllpc
commented
Jul 20, 2026
|
|
||
| // Stop retrying and fail immediately if a shutdown signal is encountered, | ||
| // as retries are only intended for fallback scenarios. | ||
| if e.action == Action::Shutdown { |
Contributor
Author
There was a problem hiding this comment.
Note: this is a point from my old PR which I think is worth bringing over. Let me know if you think otherwise
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
from
July 22, 2026 17:15
5dd1782 to
ec4544a
Compare
plebhash
reviewed
Jul 24, 2026
plebhash
reviewed
Jul 24, 2026
plebhash
reviewed
Jul 24, 2026
plebhash
reviewed
Jul 24, 2026
plebhash
reviewed
Jul 24, 2026
plebhash
reviewed
Jul 24, 2026
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
2 times, most recently
from
July 25, 2026 16:21
537c0ef to
2f72d3f
Compare
bit-aloo
reviewed
Jul 27, 2026
bit-aloo
reviewed
Jul 27, 2026
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
2 times, most recently
from
July 30, 2026 19:04
cd17528 to
94901fa
Compare
Member
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
2 times, most recently
from
July 31, 2026 18:31
58c6041 to
76461a0
Compare
nulllpc
force-pushed
the
npc/refactor-jdc-start
branch
from
August 1, 2026 04:31
50b7941 to
93be0b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactors the monolithic
startfunction inside the Pool (miner-apps/jd-client) into a structured, typestate-based state machine (JdcRuntime) to manage bootstrap, component lifecycles, and graceful shutdown.This PR also properly handles errors instead of calling
unwraporexpectFixes #526