Coverage for portality/tasks/consumer_long_running.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v6.4.2, created at 2022-07-19 16:52 +0100

1# NOTE: this file is designed to be imported by Huey, the background job processor 

2# It changes the logging configuration. If it's imported anywhere else in the app, 

3# it will change the logging configuration for the entire app. 

4import logging 

5logging.getLogger("requests").setLevel(logging.WARNING) 

6logging.getLogger("urllib3").setLevel(logging.WARNING) 

7 

8# import the queues 

9from portality.tasks.redis_huey import long_running 

10 

11# these are the ones that bind to the long_running queue 

12from portality.tasks.article_cleanup_sync import scheduled_article_cleanup_sync, article_cleanup_sync 

13from portality.tasks.prune_es_backups import scheduled_prune_es_backups, prune_es_backups 

14from portality.tasks.public_data_dump import scheduled_public_data_dump, public_data_dump 

15from portality.tasks.harvester import scheduled_harvest 

16from portality.tasks.anon_export import scheduled_anon_export, anon_export