This commit is contained in:
anlicheng 2023-12-24 16:07:30 +08:00
parent f117a57be6
commit df127490ed

View File

@ -106,11 +106,11 @@ handle_cast({ai_event, Id}, State = #state{}) ->
{stop, Reason :: term(), NewState :: #state{}}). {stop, Reason :: term(), NewState :: #state{}}).
%% Task进程挂掉 %% Task进程挂掉
handle_info({'DOWN', _MRef, process, _Pid, normal}, State) -> handle_info({'DOWN', _MRef, process, _Pid, normal}, State) ->
{keep_state, State}; {noreply, State};
handle_info({'DOWN', _MRef, process, _Pid, Reason}, State) -> handle_info({'DOWN', _MRef, process, _Pid, Reason}, State) ->
lager:notice("[iot_api] task process down with reason: ~p", [Reason]), lager:notice("[iot_api] task process down with reason: ~p", [Reason]),
{keep_state, State}; {noreply, State};
handle_info(_Info, State = #state{}) -> handle_info(_Info, State = #state{}) ->
{noreply, State}. {noreply, State}.