You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[maintenance] diagnose long response latency (#1421)
Monitors webserver's traffic and diagnoses when the average latency of the last requests is over a given threshold. At that point, the diagnostics raises HeathError which flags the service as unhealthy (i.e. healthy entrypoint returns 503). The swarm healthcheck mechanism can decide to restart it.
Copy file name to clipboardExpand all lines: packages/service-library/src/servicelib/application_setup.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ def app_module_setup(
45
45
46
46
See packages/service-library/tests/test_application_setup.py
47
47
48
-
:param module_name: typically __name__ (automaticaly removes '.__init__')
48
+
:param module_name: typically __name__
49
49
:param depends: list of module_names that must be called first, defaults to None
50
50
:param config_section: explicit configuration section, defaults to None (i.e. the name of the module, or last entry of the name if dotted)
51
51
:param config_enabled: option in config to enable, defaults to None which is '$(module-section).enabled' (config_section and config_enabled are mutually exclusive)
@@ -122,7 +122,7 @@ def _get(cfg_, parts):
122
122
is_enabled=_get(cfg, config_enabled.split("."))
123
123
exceptKeyErrorasee:
124
124
raiseApplicationSetupError(
125
-
f"Cannot find '{config_enabled}' in app config at [ {ee} ]"
125
+
f"Cannot find required option '{config_enabled}' in app config's section '{ee}'"
0 commit comments