Skip to content

Commit

Permalink
Merge pull request #176 from betagouv/feat-sms-cron
Browse files Browse the repository at this point in the history
Cron pour envoyer les sondages initiaux par SMS
  • Loading branch information
Shamzic authored Dec 6, 2023
2 parents 5d6a515 + 478f68b commit 6564ea5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/bootstrap/tasks/setup_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
{{ envvar_prefix }} /usr/bin/node
./dist-server/tools/email-sending-tool.js send initial-survey
--multiple 1000 >> /var/log/{{ server_user_name }}/{{ item.name }}_emails.log 2>&1)
- name: Add a cron job to send initial survey by sms
become_user: "{{ server_user_name }}"
ansible.builtin.cron:
name: send initial survey sms for {{ item.name }}
minute: "8"
hour: "17"
job: >-
(cd {{ repository_folder }} &&
{{ envvar_prefix }} /usr/bin/node
./dist-server/tools/sms-sending-tool.js send initial-survey
--multiple 100 >> /var/log/{{ server_user_name }}/{{ item.name }}_sms.log 2>&1)
- name: Add a cron job to anonymize Simulation and Followup data collections
become_user: "{{ server_user_name }}"
ansible.builtin.cron:
Expand Down

0 comments on commit 6564ea5

Please sign in to comment.