<commit_before>from datetime import timedelta
from kombu import Queue

BROKER_URL = 'redis://localhost:6379/0'

CELERY_RESULT_BACKEND = 'redis://localhost/0'
CELERY_TASK_RESULT_EXPIRES = 3600
CELERY_RESULT_SERIALIZER = 'json'
CELERY_CREATE_MISSING_QUEUES = True

CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = 'UTC'

CELERY_DEFAULT_QUEUE = 'default'
CELERY_QUEUES = (
    Queue('default',    routing_key='task.#'),
    Queue('life_events', routing_key='life.#'),
    Queue('actions', routing_key='actions.#'),
    Queue('bldg_creation', routing_key='bldg.#'),
    Queue('data_pipes', routing_key='pipe.#'),
)
CELERY_DEFAULT_EXCHANGE = 'tasks'
CELERY_DEFAULT_EXCHANGE_TYPE = 'topic'
CELERY_DEFAULT_ROUTING_KEY = 'task.default'

DATA_PIPES_INTERVAL = 5

CELERYBEAT_SCHEDULE = {
    'invoke_data_pipes_every_few_minutes': {
        'task': 'mies.data_pipes.twitter_social_feed.pipe.invoke',
        'schedule': timedelta(minutes=DATA_PIPES_INTERVAL),

    },
    'invoke_daily_lifecycle_manager_every_hour': {
        'task': 'mies.lifecycle_managers.daily_building.manager.invoke',
        'schedule': timedelta(minutes=3),  # FIXME: should be 1 hour
    },
    'invoke_residents_life_event_frequently': {
        'task': 'mies.lifecycle_managers.residents_life.manager.invoke',
        'schedule': timedelta(seconds=10),
    },
    'invoke_health_monitor_every_minute': {
        'task': 'mies.lifecycle_managers.health_monitoring.manager.invoke',
        'schedule': timedelta(minutes=1),
    }
}<commit_msg>restore celery config<commit_after>from datetime import timedelta
from kombu import Queue

BROKER_URL = 'redis://localhost:6379/0'

CELERY_RESULT_BACKEND = 'redis://localhost/0'
CELERY_TASK_RESULT_EXPIRES = 3600
CELERY_RESULT_SERIALIZER = 'json'
CELERY_CREATE_MISSING_QUEUES = True

CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = 'UTC'

CELERY_DEFAULT_QUEUE = 'default'
CELERY_QUEUES = (
    Queue('default',    routing_key='task.#'),
    Queue('life_events', routing_key='life.#'),
    Queue('actions', routing_key='actions.#'),
    Queue('bldg_creation', routing_key='bldg.#'),
    Queue('data_pipes', routing_key='pipe.#'),
)
CELERY_DEFAULT_EXCHANGE = 'tasks'
CELERY_DEFAULT_EXCHANGE_TYPE = 'topic'
CELERY_DEFAULT_ROUTING_KEY = 'task.default'

DATA_PIPES_INTERVAL = 10

CELERYBEAT_SCHEDULE = {
    'invoke_data_pipes_every_few_minutes': {
        'task': 'mies.data_pipes.twitter_social_feed.pipe.invoke',
        'schedule': timedelta(minutes=DATA_PIPES_INTERVAL),

    },
    'invoke_daily_lifecycle_manager_every_hour': {
        'task': 'mies.lifecycle_managers.daily_building.manager.invoke',
        'schedule': timedelta(minutes=30),  # FIXME: should be 1 hour
    },
    'invoke_residents_life_event_frequently': {
        'task': 'mies.lifecycle_managers.residents_life.manager.invoke',
        'schedule': timedelta(seconds=10),
    },
    'invoke_health_monitor_every_minute': {
        'task': 'mies.lifecycle_managers.health_monitoring.manager.invoke',
        'schedule': timedelta(minutes=1),
    }
}
{'fraction_non_alphanumeric': 0.12922465208747516, 'fraction_numerical': 0.01126573889993373, 'mean_word_length': 5.001988071570577, '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': '4095745', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1101, 'n_words': 140}