Coverage for portality/tasks/consumer_scheduled_short_queue.py: 70%
20 statements
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-20 13:43 +0000
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-20 13:43 +0000
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.approaching_flag_deadline import scheduled_approaching_flag_deadline, approaching_flag_deadline # noqa
15from portality.tasks.async_workflow_notifications import async_workflow_notifications # noqa
16from portality.tasks.check_latest_es_backup import scheduled_check_latest_es_backup, check_latest_es_backup # noqa
17from portality.tasks.datalog_journal_added_update import scheduled_datalog_journal_added_update, datalog_journal_added_update # noqa
18from portality.tasks.find_discontinued_soon import scheduled_find_discontinued_soon, find_discontinued_soon # noqa
19from portality.tasks.journal_csv import scheduled_journal_csv, journal_csv # noqa
20from portality.tasks.monitor_bgjobs import scheduled_monitor_bgjobs, monitor_bgjobs # noqa
21from portality.tasks.old_data_cleanup import scheduled_old_data_cleanup, old_data_cleanup # noqa
22from portality.tasks.prune_es_backups import scheduled_prune_es_backups, prune_es_backups # noqa
23from portality.tasks.read_news import scheduled_read_news, read_news # noqa
24from portality.tasks.reporting import scheduled_reports, run_reports # noqa
25from portality.tasks.request_es_backup import scheduled_request_es_backup, request_es_backup # noqa
26from portality.tasks.article_deletion_notifications import scheduled_article_deletion_notifications, execute_article_deletion_notifications #noqa
27from portality.tasks.auto_assign_editor_group_data import scheduled_auto_assign_editor_group_data, auto_assign_editor_group_data # noqa
28from portality.tasks.site_statistics import scheduled_site_statistics, site_statistics # noqa