<commit_before>import os
# from datetime import timedelta

from celery import Celery
from celery.app import app_or_default
from celery.signals import worker_process_init
from celery.schedules import crontab

from ichnaea import config
from ichnaea.db import Database


CELERY_IMPORTS = ['ichnaea.tasks']
# add test-only tasks
if 'CELERY_ALWAYS_EAGER' in os.environ:
    CELERY_IMPORTS.append('ichnaea.tests.test_tasks')

CELERYBEAT_SCHEDULE = {
    'histogram-yesterday': {
        'task': 'ichnaea.tasks.histogram',
        'schedule': crontab(hour=0, minute=5),
        'args': (1),
    },
    'histogram-cell-yesterday': {
        'task': 'ichnaea.tasks.cell_histogram',
        'schedule': crontab(hour=0, minute=9),
        'args': (1),
    },
    'histogram-wifi-yesterday': {
        'task': 'ichnaea.tasks.wifi_histogram',
        'schedule': crontab(hour=0, minute=13),
        'args': (1),
    },
    'histogram-unique-cell-yesterday': {
        'task': 'ichnaea.tasks.unique_cell_histogram',
        'schedule': crontab(hour=0, minute=17),
        'args': (1),
    },
    'histogram-unique-wifi-yesterday': {
        'task': 'ichnaea.tasks.unique_wifi_histogram',
        'schedule': crontab(hour=0, minute=21),
        'args': (1),
    },
    # 'add-often': {
    #     'task': 'ichnaea.tasks.add_measure',
    #     'schedule': timedelta(seconds=5),
    #     'args': (6, 9),
    # },
}

celery = Celery('ichnaea.worker')

<commit_msg>fix celery beat schedule<commit_after>import os
# from datetime import timedelta

from celery import Celery
from celery.app import app_or_default
from celery.signals import worker_process_init
from celery.schedules import crontab

from ichnaea import config
from ichnaea.db import Database


CELERY_IMPORTS = ['ichnaea.tasks']
# add test-only tasks
if 'CELERY_ALWAYS_EAGER' in os.environ:
    CELERY_IMPORTS.append('ichnaea.tests.test_tasks')

CELERYBEAT_SCHEDULE = {
    'histogram-yesterday': {
        'task': 'ichnaea.tasks.histogram',
        'schedule': crontab(hour=0, minute=5),
        'args': (1, ),
    },
    'histogram-cell-yesterday': {
        'task': 'ichnaea.tasks.cell_histogram',
        'schedule': crontab(hour=0, minute=9),
        'args': (1, ),
    },
    'histogram-wifi-yesterday': {
        'task': 'ichnaea.tasks.wifi_histogram',
        'schedule': crontab(hour=0, minute=13),
        'args': (1, ),
    },
    'histogram-unique-cell-yesterday': {
        'task': 'ichnaea.tasks.unique_cell_histogram',
        'schedule': crontab(hour=0, minute=17),
        'args': (1, ),
    },
    'histogram-unique-wifi-yesterday': {
        'task': 'ichnaea.tasks.unique_wifi_histogram',
        'schedule': crontab(hour=0, minute=21),
        'args': (1, ),
    },
    # 'add-often': {
    #     'task': 'ichnaea.tasks.add_measure',
    #     'schedule': timedelta(seconds=5),
    #     'args': (6, 9),
    # },
}

celery = Celery('ichnaea.worker')


{'fraction_non_alphanumeric': 0.1566678093932122, 'fraction_numerical': 0.014398354473774426, 'mean_word_length': 3.081118881118881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2082017', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1073, 'n_words': 185}