Skip to content

Commit

Permalink
Fix master dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 14, 2024
1 parent 0500e32 commit c155054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/shared_config_manager/sources/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def _slave_fetch(id_: str) -> None:
_LOG.info("The reloading the %s config is filtered", id_)
return
_LOG.info("Reloading the %s config from event", id_)
source.fetch()
if not source.is_master() or os.environ.get("SCM_MASTER_DISPATCH", "TRUE").lower() in ["true", "1", "on"]:
source.fetch()
if source.is_master() and (not MASTER_SOURCE or not MASTER_SOURCE.get_config().get("standalone", False)):
reload_master_config()

Expand Down

0 comments on commit c155054

Please sign in to comment.