<commit_before>- name: Adding celery worker daemons
  supervised:
    name: celery-worker-{{item.app}}
    command: '{{celery_env_path}}/bin/celery -A {{item.app}} worker -l info'
    autostart: true
    autorestart: true
    stdout_logfile: '{{celery_logs_path}}/celery-worker-{{item.app}}-out.log'
    stderr_logfile: '{{celery_logs_path}}/celery-worker-{{item.app}}-err.log'
    user: '{{celery_user}}'
    directory: '{{celery_directory}}'
    numprocs: '{{item.numprocs}}'
  with_items: celery_apps

- name: Adding celery beat daemons
  supervised:
    name: celery-beat-{{item.app}}
    command: '{{celery_env_path}}/bin/celery -A {{item.app}} beat -l info'
    autostart: true
    autorestart: true
    stdout_logfile: '{{celery_logs_path}}/celery-beat-{{item.app}}-out.log'
    stderr_logfile: '{{celery_logs_path}}/celery-beat-{{item.app}}-err.log'
    user: '{{celery_user}}'
    directory: '{{celery_directory}}'
    numprocs: 1
  when: item.beat
  with_items: celery_apps

<commit_msg>fixed celery playbook<commit_after>- name: Adding celery worker daemons
  supervised:
    name: celery-worker-{{item.app}}-%(process_num)
    command: '{{celery_env_path}}/bin/celery -A {{item.app}} worker -l info'
    autostart: 'true'
    autorestart: 'true'
    stdout_logfile: '{{celery_logs_path}}/celery-worker-{{item.app}}-out.log'
    stderr_logfile: '{{celery_logs_path}}/celery-worker-{{item.app}}-err.log'
    user: '{{celery_user}}'
    directory: '{{celery_directory}}'
    numprocs: '{{item.numprocs}}'
  with_items: celery_apps
  sudo: yes

- name: Adding celery beat daemons
  supervised:
    name: celery-beat-{{item.app}}
    command: '{{celery_env_path}}/bin/celery -A {{item.app}} beat -l info'
    autostart: 'true'
    autorestart: 'true'
    stdout_logfile: '{{celery_logs_path}}/celery-beat-{{item.app}}-out.log'
    stderr_logfile: '{{celery_logs_path}}/celery-beat-{{item.app}}-err.log'
    user: '{{celery_user}}'
    directory: '{{celery_directory}}'
    numprocs: 1
  when: item.beat
  with_items: celery_apps
  sudo: yes


{'fraction_non_alphanumeric': 0.17276720351390923, 'fraction_numerical': 0.0009760858955588092, 'mean_word_length': 4.125, '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': '4962631', 'n_tokens_mistral': 811, 'n_tokens_neox': 743, 'n_words': 136}