Merge pull request #13503 from thalesmg/20240722-r57-resource-manager-hc-interval-startup

fix(connector resource): use configuration `resource_opts` for health check interval when starting up
This commit is contained in:
Thales Macedo Garitezi 2024-07-24 09:15:47 -03:00 committed by GitHub
commit 9e65e0d048
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -352,8 +352,10 @@ safe_atom(Bin) when is_binary(Bin) -> binary_to_existing_atom(Bin, utf8);
safe_atom(Atom) when is_atom(Atom) -> Atom.
parse_opts(Conf, Opts0) ->
Opts1 = override_start_after_created(Conf, Opts0),
set_no_buffer_workers(Opts1).
Opts1 = emqx_resource:fetch_creation_opts(Conf),
Opts2 = maps:merge(Opts1, Opts0),
Opts = override_start_after_created(Conf, Opts2),
set_no_buffer_workers(Opts).
override_start_after_created(Config, Opts) ->
Enabled = maps:get(enable, Config, true),

View File

@ -0,0 +1 @@
Fixed an issue where a connector wouldn't respect the configured health check interval when first starting up, and would need an update/restart for the correct value to take effect.