fix(mqtt-connector): faster shutdown
This commit is contained in:
parent
7eef86363a
commit
5bbcf4b712
|
@ -1,7 +1,7 @@
|
|||
%% -*- mode: erlang -*-
|
||||
{application, emqx_connector, [
|
||||
{description, "EMQX Data Integration Connectors"},
|
||||
{vsn, "0.1.22"},
|
||||
{vsn, "0.1.23"},
|
||||
{registered, []},
|
||||
{mod, {emqx_connector_app, []}},
|
||||
{applications, [
|
||||
|
|
|
@ -112,7 +112,7 @@ bridge_spec(Config) ->
|
|||
id => Name,
|
||||
start => {emqx_connector_mqtt_worker, start_link, [Name, NConfig]},
|
||||
restart => temporary,
|
||||
shutdown => 5000
|
||||
shutdown => 1000
|
||||
}.
|
||||
|
||||
-spec bridges() -> [{_Name, _Status}].
|
||||
|
@ -181,7 +181,7 @@ on_stop(_InstId, #{name := InstanceId}) ->
|
|||
ok;
|
||||
{error, Reason} ->
|
||||
?SLOG(error, #{
|
||||
msg => "stop_mqtt_connector",
|
||||
msg => "stop_mqtt_connector_error",
|
||||
connector => InstanceId,
|
||||
reason => Reason
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue