<commit_before>from kombu import Exchange, Queue
import os
BROKER_URL = os.environ['CELERY_BROKER']
CELERY_RESULT_BACKEND='rpc://'
CELERY_RESULT_PERSISTENT = True
CELERY_DISABLE_RATE_LIMITS = True
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json']


imputation_exchange = Exchange('imputation', type='direct')
ancestry_exchange = Exchange('ancestry',type='direct')
riskprediction_exchange = Exchange('riskprediction',type='direct')



CELERY_QUEUES = (
    Queue('imputation', imputation_exchange, routing_key='imputation'),
    Queue('ancestry', ancestry_exchange, routing_key='ancestry'),
    Queue('riskprediction',riskprediction_exchange,routing_key='riskprediction')
)

   
CELERY_ROUTES = {
        'thehonestgenepipeline.imputation.test':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.imputation':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.convert':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.impute':{'queue':'imputation'},
        'thehonestgenepipeline.ancestry.analysis':{'queue':'ancestry'},<commit_msg>Change from rpc to amqp backend<commit_after>from kombu import Exchange, Queue
import os
BROKER_URL = os.environ['CELERY_BROKER']
CELERY_RESULT_BACKEND='amqp://'
CELERY_RESULT_PERSISTENT = True
CELERY_DISABLE_RATE_LIMITS = True
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json']


imputation_exchange = Exchange('imputation', type='direct')
ancestry_exchange = Exchange('ancestry',type='direct')
riskprediction_exchange = Exchange('riskprediction',type='direct')



CELERY_QUEUES = (
    Queue('imputation', imputation_exchange, routing_key='imputation'),
    Queue('ancestry', ancestry_exchange, routing_key='ancestry'),
    Queue('riskprediction',riskprediction_exchange,routing_key='riskprediction')
)

   
CELERY_ROUTES = {
        'thehonestgenepipeline.imputation.test':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.imputation':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.convert':{'queue':'imputation'},
        'thehonestgenepipeline.imputation.impute':{'queue':'imputation'},
        'thehonestgenepipeline.ancestry.analysis':{'queue':'ancestry'},
{'fraction_non_alphanumeric': 0.13638363396392433, 'fraction_numerical': 0.0, 'mean_word_length': 7.613636363636363, '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': '5309418', 'n_tokens_mistral': 827, 'n_tokens_neox': 736, 'n_words': 86}