Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor state machine #70

Merged
merged 3 commits into from
Feb 24, 2024
Merged

Refactor state machine #70

merged 3 commits into from
Feb 24, 2024

Conversation

hjr3
Copy link
Owner

@hjr3 hjr3 commented Feb 24, 2024

No description provided.

hjr3 added 3 commits February 14, 2024 09:58
The proxy state machine used to loop internally, making as much progress
as possible. This made it hard to test some use cases.

Now, the state machine will accept state and return the next
possible state. If an error is returned, we consider it fatal and abort.
If no state is returned, then the state machine can no longer make
progress and the loop will stop.
When we reach a state that is "complete" or "failure", then we pause the
state machine. The "failure" state also includes states like Timeout.
@hjr3 hjr3 merged commit 4ae6a0d into main Feb 24, 2024
2 checks passed
@hjr3 hjr3 deleted the state-machine branch February 24, 2024 13:50
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