fix: emqx_auto_subscribe emqx_slow_subs don't restart when ekka:join.

This commit is contained in:
Zhongwen Deng 2022-04-15 20:52:14 +08:00
parent deb64bbbdc
commit 868e26cabc
4 changed files with 36 additions and 28 deletions

View File

@ -1,16 +1,17 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{application, emqx_auto_subscribe, {application, emqx_auto_subscribe, [
[{description, "An OTP application"}, {description, "An OTP application"},
{vsn, "0.1.0"}, {vsn, "0.1.0"},
{registered, []}, {registered, []},
{mod, {emqx_auto_subscribe_app, []}}, {mod, {emqx_auto_subscribe_app, []}},
{applications, {applications, [
[kernel, kernel,
stdlib stdlib,
]}, emqx
{env,[]}, ]},
{modules, []}, {env, []},
{modules, []},
{licenses, ["Apache 2.0"]}, {licenses, ["Apache 2.0"]},
{links, []} {links, []}
]}. ]}.

View File

@ -1,12 +1,13 @@
{application, emqx_slow_subs, {application, emqx_slow_subs, [
[{description, "EMQX Slow Subscribers Statistics"}, {description, "EMQX Slow Subscribers Statistics"},
{vsn, "1.0.0"}, % strict semver, bump manually! % strict semver, bump manually!
{modules, []}, {vsn, "1.0.0"},
{registered, [emqx_slow_subs_sup]}, {modules, []},
{applications, [kernel,stdlib]}, {registered, [emqx_slow_subs_sup]},
{mod, {emqx_slow_subs_app,[]}}, {applications, [kernel, stdlib, emqx]},
{env, []}, {mod, {emqx_slow_subs_app, []}},
{licenses, ["Apache-2.0"]}, {env, []},
{maintainers, ["EMQX Team <contact@emqx.io>"]}, {licenses, ["Apache-2.0"]},
{links, []} {maintainers, ["EMQX Team <contact@emqx.io>"]},
]}. {links, []}
]}.

View File

@ -145,6 +145,8 @@ defmodule EMQXUmbrella.MixProject do
:emqx_statsd, :emqx_statsd,
:emqx_retainer, :emqx_retainer,
:emqx_prometheus, :emqx_prometheus,
:emqx_auto_subscribe,
:emqx_slow_subs,
:emqx_plugins :emqx_plugins
], ],
steps: steps, steps: steps,
@ -230,7 +232,9 @@ defmodule EMQXUmbrella.MixProject do
:emqx_exhook, :emqx_exhook,
:emqx_authn, :emqx_authn,
:emqx_authz, :emqx_authz,
:emqx_plugin :emqx_auto_subscribe,
:emqx_slow_subs,
:emqx_plugins
] ]
end end

View File

@ -385,7 +385,9 @@ emqx_machine_boot_apps(ce) ->
, emqx_exhook , emqx_exhook
, emqx_authn , emqx_authn
, emqx_authz , emqx_authz
, emqx_plugin , emqx_slow_subs
, emqx_auto_subscribe
, emqx_plugins
]; ];
emqx_machine_boot_apps(ee) -> emqx_machine_boot_apps(ee) ->