# Path: invenio_stats/proxies.py



from .proxies import current_stats
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Celery background tasks."""



def declare_queues():
    """Index statistics events."""
    return [
        dict(
            name='stats-{0}'.format(event),

# Path: invenio_stats/proxies.py



# Path: invenio_stats/queues.py
from .proxies import current_stats

# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Celery background tasks."""



def declare_queues():
    """Index statistics events."""
    return [
        dict(
            name='stats-{0}'.format(event),

            exchange=current_stats.exchange