Coverage for portality/tasks/consumer_main_queue.py: 0%
18 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-19 16:52 +0100
« 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)
8# import the queues
9from portality.tasks.redis_huey import main_queue
11# now import the tasks that will bind to those queues
13# these are the ones which bind to the main_queue
14from portality.tasks.reporting import scheduled_reports, run_reports
15from portality.tasks.journal_in_out_doaj import set_in_doaj
16from portality.tasks.sitemap import scheduled_sitemap, generate_sitemap
17from portality.tasks.journal_bulk_edit import journal_bulk_edit
18from portality.tasks.suggestion_bulk_edit import suggestion_bulk_edit
19from portality.tasks.ingestarticles import ingest_articles
20from portality.tasks.preservation import preserve
21from portality.tasks.journal_csv import scheduled_journal_csv, journal_csv
22from portality.tasks.read_news import scheduled_read_news, read_news
23from portality.tasks.journal_bulk_delete import journal_bulk_delete
24from portality.tasks.article_bulk_delete import article_bulk_delete
25from portality.tasks.async_workflow_notifications import async_workflow_notifications
26from portality.tasks.check_latest_es_backup import scheduled_check_latest_es_backup, check_latest_es_backup
27from portality.tasks.request_es_backup import scheduled_request_es_backup, request_es_backup