erlang-supervisor
Erlang supervisor: how to check if all the workers have replied
I have a supervisor with N worker processes. As usual the supervisor can send a message to a worker process and there is a handle_cast that sends a reply from a worker to the supervisor.[详细]
2023-04-05 21:29 分类:问答Erlang Supervisors - Shared Process Mailboxes
I have a supervisor process that monitors two child processes; a primary process and a backup process (in case the primary process exits).[详细]
2023-03-26 03:34 分类:问答Collecting info about simple_one_for_one workers
I have a supervisor (called alice) which starts a bunch of_one_for_one workers. Now I\'d like to get some info about all of the works together. For instance, let\'s say workers are TCP servers and I\'[详细]
2023-03-16 04:55 分类:问答how to handle termination of gen_fsm
I have a MAIN process that spawn an implementa开发者_Python百科tion of a gen_fsm behavior, but this MAIN process is not an implementation of supervisor behavior, its just another module.[详细]
2023-03-07 12:17 分类:问答Supervisors behaviour
when implementing a supervisor.. If, in the supervisor module, I do something like init([_]) -> {ok, {{one_for_one, 5, 60},[详细]
2023-03-02 17:21 分类:问答Erlang: Who supervises the supervisor?
In all Erlang supervisor examples I have seen yet, there usually is a \"master\" supervisor开发者_开发知识库 who supervises the whole tree (or at least is the root node in the supervisor tree). What i[详细]
2023-02-25 08:18 分类:问答Does supervisor block calls while restarting children?
I\'m trying to understand what\'s happening here: I have a supervisor that is cyclically restarting one client without triggering the MaxR, MaxT mechanism.The client just crashes slowly enough never[详细]
2023-02-20 14:21 分类:问答Erlang: what supervision tree should I end with writing a task scheduler?
Mostly in educational purposes I\'m trying to write a task (task is an open_port({spawn_executable, Command})) scheduler.[详细]
2023-02-19 01:20 分类:问答Erlang Dynamic supervisor start gen_server
I have root supervisor that create other supervisor: start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).[详细]
2023-02-08 01:04 分类:问答How to always log/show the error reason when a supervisor child returns error from start_link?
When starting gen_server\'s from a supervisor 开发者_JS百科(which itself is started by a application) I have the problem that when the start_link of the gen_server doesn\'t return {ok, ...} but {error[详细]
2023-02-06 06:37 分类:问答