<commit_before>from celery.task import task

from callback_request.models import CallbackRequest


@task(name='callback_request.delayed_request')
def delayed_request(request_id):
    callback_request = CallbackRequest.objects.get(pk=request_id)
    if callback_request.completed or callback_request.error:
        return
    callback_request.make_call()<commit_msg>added task for delayed requests<commit_after>from celery.task import task


@task(name='callback_request.delayed_request')
def delayed_request(request_id):
    from callback_request.models import CallbackRequest

    callback_request = CallbackRequest.objects.get(pk=request_id)
    if callback_request.completed or callback_request.error:
        return
    callback_request.make_call()
{'fraction_non_alphanumeric': 0.07180851063829788, 'fraction_numerical': 0.0, 'mean_word_length': 5.908256880733945, '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': '2194851', 'n_tokens_mistral': 212, 'n_tokens_neox': 204, 'n_words': 41}