# Restart handler for our fedora-messaging consumers
- name: Conditionally restart openQA scheduler consumer
  command: /usr/local/bin/conditional-restart.sh fm-consumer@fedora_openqa_scheduler
  listen:
  - restart openqa consumers
  - restart openqa scheduler consumer

- name: Conditionally restart openQA ResultsDB reporter consumer
  command: /usr/local/bin/conditional-restart.sh fm-consumer@fedora_openqa_resultsdb_reporter
  listen:
  - restart openqa consumers
  - restart openqa resultsdb consumer

- name: Conditionally restart openQA wiki reporter consumer
  command: /usr/local/bin/conditional-restart.sh fm-consumer@fedora_openqa_wiki_reporter
  listen:
  - restart openqa consumers
  - restart openqa wiki consumer
