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

_changeState() prohibits transition from Paused to Suspended #111

Open
rapidddenis opened this issue Jun 9, 2023 · 1 comment
Open

_changeState() prohibits transition from Paused to Suspended #111

rapidddenis opened this issue Jun 9, 2023 · 1 comment

Comments

@rapidddenis
Copy link

function _changeState(uint256 componentId, IComponent.ComponentState newState) internal {

suspend() / resume() and pause() / unpause() are similar functions triggered by instance operator and component owner respectively. But does they have the same priority? Currently, to suspend component, instance operator must wait for component owner to unpause it.
Ideally, for component to transition into Active state both actors must activate it (resume() and unpause()). While, for component to became inactive only one actor is enough with suspend() having priority over pause().

@rapidddenis
Copy link
Author

Also, _changeState() have no check for Archived old state and giving "ERROR:CCR-027:INITIAL_STATE_NOT_HANDLED" in this case

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

No branches or pull requests

1 participant