05/22 Implement license version
This commit is contained in:
@@ -143,6 +143,10 @@ def check_sla_breaches(app):
|
||||
is re-opened, ensuring fresh notifications if the issue resurfaces.
|
||||
"""
|
||||
with app.app_context():
|
||||
from app.services.license_service import feature_enabled
|
||||
if not feature_enabled('sla'):
|
||||
logger.debug('[SLA] Skipped — SLA feature not enabled on current license tier.')
|
||||
return
|
||||
try:
|
||||
_run_sla_check(app)
|
||||
except Exception as exc:
|
||||
|
||||
Reference in New Issue
Block a user