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

11 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-04 09:41 +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 

5 

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

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

8 

9# import the queues 

10from portality.tasks.redis_huey import long_running # noqa 

11 

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

13from portality.tasks.article_cleanup_sync import scheduled_article_cleanup_sync, article_cleanup_sync # noqa 

14from portality.tasks.prune_es_backups import scheduled_prune_es_backups, prune_es_backups # noqa 

15from portality.tasks.public_data_dump import scheduled_public_data_dump, public_data_dump # noqa 

16from portality.tasks.harvester import scheduled_harvest # noqa 

17from portality.tasks.anon_export import scheduled_anon_export, anon_export # noqa 

18from portality.tasks.old_data_cleanup import scheduled_old_data_cleanup, old_data_cleanup # noqa 

19from portality.tasks.monitor_bgjobs import scheduled_monitor_bgjobs, monitor_bgjobs # noqa