mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Remove stupid logs
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
			
		||||
from logger.logger import init_logger
 | 
			
		||||
from tasks.check_corpora import check_corpora
 | 
			
		||||
from tasks.check_jobs import check_jobs
 | 
			
		||||
from tasks.notify import notify
 | 
			
		||||
@@ -7,7 +6,6 @@ import os
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def nopaqued():
 | 
			
		||||
    logger = init_logger()
 | 
			
		||||
    NOPAQUE_EXECUTE_NOTIFICATIONS = os.environ.get('NOPAQUE_EXECUTE_NOTIFICATIONS', 'True').lower() == 'true'  # noqa
 | 
			
		||||
    threads = {'check_corpora': None, 'check_jobs': None, 'notify': None}
 | 
			
		||||
 | 
			
		||||
@@ -15,13 +13,10 @@ def nopaqued():
 | 
			
		||||
    threads['check_jobs'] = check_jobs()
 | 
			
		||||
    threads['notify'] = notify(NOPAQUE_EXECUTE_NOTIFICATIONS)
 | 
			
		||||
    while True:
 | 
			
		||||
        logger.warning('check_corpora: {}'.format(threads['check_corpora'].is_alive()))
 | 
			
		||||
        if not threads['check_corpora'].is_alive():
 | 
			
		||||
            threads['check_corpora'] = check_corpora()
 | 
			
		||||
        logger.warning('check_jobs: {}'.format(threads['check_jobs'].is_alive()))
 | 
			
		||||
        if not threads['check_jobs'].is_alive():
 | 
			
		||||
            threads['check_jobs'] = check_jobs()
 | 
			
		||||
        logger.warning('notify: {}'.format(threads['notify'].is_alive()))
 | 
			
		||||
        if not threads['notify'].is_alive():
 | 
			
		||||
            threads['notify'] = notify(NOPAQUE_EXECUTE_NOTIFICATIONS)
 | 
			
		||||
            # If execute_notifications True mails are sent.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user