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

overseers now publish lifecycle events #160

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

robacarp
Copy link
Collaborator

@robacarp robacarp commented Nov 9, 2024

fixes #158

ic(1.13.1):pry> subscriber = Mosquito::Api.event_receiver
 => #<Channel(Mosquito::Backend::BroadcastMessage):0x130395ec0>
ic(1.13.1):pry> 4.times { puts subscriber.receive }
Mosquito::Backend::BroadcastMessage(@channel="mosquito:overseer:4337188736", @message="{\"event\":\"executor-created\",\"executor\":4337158448}")
Mosquito::Backend::BroadcastMessage(@channel="mosquito:overseer:4337188736", @message="{\"event\":\"executor-created\",\"executor\":4337158336}")
Mosquito::Backend::BroadcastMessage(@channel="mosquito:overseer:4337188736", @message="{\"event\":\"executor-created\",\"executor\":4337158224}")
Mosquito::Backend::BroadcastMessage(@channel="mosquito:overseer:4337188736", @message="{\"event\":\"starting\"}")

Overseers now publish these events:

  • Starting
  • Stopping
  • Stopped
  • Started new executor
  • An executor died

@robacarp robacarp merged commit 8675e6a into master Nov 9, 2024
3 checks passed
@robacarp robacarp deleted the adds_mosquito_api branch November 9, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add pubsub events for Runners
1 participant