Coverage for portality / tasks / consumer_scheduled_short_queue.py: 72%
18 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-04 09:41 +0100
« 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
5from portality.core import app
7logging.getLogger("requests").setLevel(logging.WARNING)
8logging.getLogger("urllib3").setLevel(logging.WARNING)
10# import the queues
11from portality.tasks.redis_huey import scheduled_short_queue # noqa
13# now import the tasks that will bind to those queues
14from portality.tasks.async_workflow_notifications import async_workflow_notifications # noqa
15from portality.tasks.check_latest_es_backup import scheduled_check_latest_es_backup, check_latest_es_backup # noqa
16from portality.tasks.datalog_journal_added_update import scheduled_datalog_journal_added_update, datalog_journal_added_update # noqa
17from portality.tasks.find_discontinued_soon import scheduled_find_discontinued_soon, find_discontinued_soon # noqa
18from portality.tasks.journal_csv import scheduled_journal_csv, journal_csv # noqa
19from portality.tasks.monitor_bgjobs import scheduled_monitor_bgjobs, monitor_bgjobs # noqa
20from portality.tasks.old_data_cleanup import scheduled_old_data_cleanup, old_data_cleanup # noqa
21from portality.tasks.prune_es_backups import scheduled_prune_es_backups, prune_es_backups # noqa
22from portality.tasks.read_news import scheduled_read_news, read_news # noqa
23from portality.tasks.reporting import scheduled_reports, run_reports # noqa
24from portality.tasks.request_es_backup import scheduled_request_es_backup, request_es_backup # noqa
25from portality.tasks.auto_assign_editor_group_data import scheduled_auto_assign_editor_group_data, auto_assign_editor_group_data # noqa
26from portality.tasks.site_statistics import scheduled_site_statistics, site_statistics # noqa