Skip to content

Commit

Permalink
adding airflow worker and flower handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cmharlow committed Apr 25, 2019
1 parent 1e5bd03 commit 943f783
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,31 @@
- 'role::airflow'
- 'role::airflow::config'
- 'role::airflow::install'

- name: 'Restart airflow-worker'
become: True
service:
name: "{{ item.name }}"
state: 'restarted'
with_items: "{{ airflow_services_states }}"
when:
- "item.name == 'airflow-worker'"
- "item.state == 'started'"
tags:
- 'role::airflow'
- 'role::airflow::config'
- 'role::airflow::install'

- name: 'Restart airflow-flower'
become: True
service:
name: "{{ item.name }}"
state: 'restarted'
with_items: "{{ airflow_services_states }}"
when:
- "item.name == 'airflow-flower'"
- "item.state == 'started'"
tags:
- 'role::airflow'
- 'role::airflow::config'
- 'role::airflow::install'

0 comments on commit 943f783

Please sign in to comment.