<commit_before>---
- job:
    name: search_index_checks
    display-name: Search index checks
    project-type: freestyle
    description: |
      This job monitors the GOV.UK search indexes and sends data to statsd.
    logrotate:
      numToKeep: 10
    triggers:
        - timed: 'H/10 * * * *'
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/rummager && govuk_setenv rummager bundle exec rake rummager:monitor_indices"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps<commit_msg>Use run-rake-task in search_index_checks job<commit_after>---
- job:
    name: search_index_checks
    display-name: Search index checks
    project-type: freestyle
    description: |
      This job monitors the GOV.UK search indexes and sends data to statsd.
    logrotate:
      numToKeep: 10
    triggers:
        - timed: 'H/10 * * * *'
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
    builders:
      - trigger-builds:
          - project: run-rake-task
            block: true
            predefined-parameters: |
              TARGET_APPLICATION=rummager
              MACHINE_CLASS=search
              RAKE_TASK=rummager:monitor_indices
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps
{'fraction_non_alphanumeric': 0.08716540837336993, 'fraction_numerical': 0.009608785175017159, 'mean_word_length': 1.9336016096579476, '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': '4230011', 'n_tokens_mistral': 476, 'n_tokens_neox': 448, 'n_words': 108}