<commit_before>from __future__ import absolute_import, print_function

import logging

from sentry.tasks.base import instrumented_task

BASE_URL = 'https://docs.getsentry.com/hosted/_platforms/{}'

logger = logging.getLogger('sentry')


def get_integration_id(platform_id, integration_id):
    if integration_id == '_self':
        return platform_id
    return '{}-{}'.format(platform_id, integration_id)


@instrumented_task(name='sentry.tasks.sync_docs', queue='update')
def sync_docs():
    from sentry import http, options<commit_msg>Set a tight time limit on docs sync<commit_after>from __future__ import absolute_import, print_function

import logging

from sentry.tasks.base import instrumented_task

BASE_URL = 'https://docs.getsentry.com/hosted/_platforms/{}'

logger = logging.getLogger('sentry')


def get_integration_id(platform_id, integration_id):
    if integration_id == '_self':
        return platform_id
    return '{}-{}'.format(platform_id, integration_id)


@instrumented_task(name='sentry.tasks.sync_docs', queue='update',
                   time_limit=15,
                   soft_time_limit=10)
def sync_docs():
    from sentry import http, options
{'fraction_non_alphanumeric': 0.10741687979539642, 'fraction_numerical': 0.0034100596760443308, 'mean_word_length': 4.699029126213592, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7294565', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 78}