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

feat(events): support actor_scaled event #238

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Jan 16, 2024

Feature or Problem

This PR adds a handler for the actor_scaled event which will be able to summarize all of the information in actors_started and actors_stopped with an idempotent event.

Though there's future work to really make this work with v0.82, this can be released at any time without problems as the event doesn't exist yet.

Related Issues

Requires wasmCloud/wasmCloud#1336
Filed #239 to cover future work that can't be done today.

Release Information

v0.11.0

Consumer Impact

Note that, if testing with the unreleased v0.82.0, this may cause duplicate state updates because both the actors_started and actor_scaled events will be handled. I'll be creating an issue shortly to cover this update.

Testing

Unit Test(s)

I modified the test_all_state function to ensure functionality around starting/stopping/scaling up/down actors.

Acceptance or Integration

Manual Verification

connorsmith256
connorsmith256 previously approved these changes Jan 16, 2024
src/workers/event.rs Show resolved Hide resolved
Copy link
Contributor

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

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

All good to go other than one small blocking change

test/data/events.json Show resolved Hide resolved
Signed-off-by: Brooks Townsend <[email protected]>

add scaled events to parse

Signed-off-by: Brooks Townsend <[email protected]>
@brooksmtownsend
Copy link
Member Author

Holding on the merge here just a moment to ensure we can release v0.82 before we start cutting wadm releases with this change. Only reason why is that here, for v0.82, we'll handle both the actorscaled and actorsstarted events so we might get incorrect state inbetween heartbeats.

@brooksmtownsend brooksmtownsend merged commit f83bdff into main Mar 5, 2024
5 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/support-actor-scaled branch March 5, 2024 14:03
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