Use a feature flag to toggle security notifications
This commit is contained in:
parent
bfcb1add48
commit
888f976e8d
3 changed files with 6 additions and 3 deletions
|
@ -43,7 +43,7 @@ class SecurityNotificationWorker(QueueWorker):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if not features.SECURITY_SCANNER:
|
||||
if not features.SECURITY_SCANNER or not features.SECURITY_NOTIFICATIONS:
|
||||
logger.debug('Security scanner disabled; skipping SecurityNotificationWorker')
|
||||
while True:
|
||||
time.sleep(100000)
|
||||
|
|
Reference in a new issue