Open vertexclique opened 5 years ago
@vertexclique is Prune
still needed?
(Note that it is present in bastion
but not used or supported though supported by System
.)
We can close this but having another issue for Remote Communication
would be nice.
@vertexclique Maybe Prune
could be used to stop/kill a Children
/Supervisor
and completely remove it (ie. not restarting it even if it was supervised by a "one-for-all" supervisor)?
That is the main idea of it. especially on distributed communication. So I think this can go under bastion-rs/artillery
. Though we still need to iterate on this.
We need some internal management for message types.
Lifecycle Commands (exposed)
Stop
(stops pollingexec
or stops the children group's elements or supervised elements)Kill
(stops pollingexec
or cancels the children group's elements or supervised elements)Start
(start pollingexec
or start the children group's elements or supervised elements)Notifications
Dead
(whenexec
successfully finished its executiong orStop
/Kill
was received or one the elements of the children group stopped)Faulted
(whenexec
panics or returns an error or one elements of the children group faulted)Direct Communication (exposed)
Tell
(a message)Ask
(a message with a channel to answer with another message)Remote Communication (exposed)
Deploy
(makes a supervisor supervise a new children group or supervisor)Prune
(TODO)SuperviseWith
(changes the supervision strategy of a supervisor)