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

Added actors started and actors stopped events #617

Merged
merged 9 commits into from May 16, 2023

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented May 5, 2023

Feature or Problem

This PR adds three new events to the ActorSupervisor: actors_started, actors_start_failed, and actors_stopped. These events are published once after control interface requests to start/stop actors, once they finish, along with the total count started/stopped.

Related Issues

No issue created, but this will allow wadm to be a lot smarter in terms of knowing when a request to start/stop an actor actually completes.

Release Information

v0.63.0

Consumer Impact

These three events will be added, so consumers of the event stream will need to consider these if they subscribe to all events. As I'm writing this, I realize that I need to update the wasmCloud dashboard to ignore these.

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Unit Test(s)

Acceptance or Integration

Manual Verification

Tested to ensure these events publish properly and contain the proper information.

@brooksmtownsend brooksmtownsend marked this pull request as ready for review May 5, 2023 15:43
@brooksmtownsend
Copy link
Member Author

Mac runners appear to be slow this morning, may be related to testing in #616. Tests all pass well locally /shrug

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
autodidaddict
autodidaddict previously approved these changes May 11, 2023
Copy link
Member

@autodidaddict autodidaddict left a comment

Choose a reason for hiding this comment

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

My only real comment on this is that it feels like we're cluttering things by shuffling the lattice prefix around from call to call even though it's in state ... but I've been in this pit of despair before and know how it gets messy as soon as you leave the GenServer bounds.

@brooksmtownsend
Copy link
Member Author

My only real comment on this is that it feels like we're cluttering things by shuffling the lattice prefix around from call to call even though it's in state ... but I've been in this pit of despair before and know how it gets messy as soon as you leave the GenServer bounds.

Yeah I agree with you around passing the prefix around. My pit of despair is just like, if I fail to look up the host for some reason that means that I can’t even publish the event back on the same lattice prefix that I just received a request on?

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
@brooksmtownsend
Copy link
Member Author

@connorsmith256 fixed to not need to pass the prefix around everywhere

@brooksmtownsend
Copy link
Member Author

Tests should pass they are just getting an old version of host_core from cache. Deleting caches and then will re-run

@brooksmtownsend brooksmtownsend merged commit 62de47f into main May 16, 2023
43 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/actors-started-stopped branch May 16, 2023 18:36
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.

None yet

3 participants