Skip to content

Commit 485da4e

Browse files
author
Christopher M. Neill
committed
Set up cronjob for Khronos CLI
1 parent 36e5c93 commit 485da4e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ansible/khronos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
- { role: docker_client }
1010
- { role: builder, tags: "build" }
1111
- { role: container_kill_start, tags: "deploy" }
12+
- { role: khronos_cronjob }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run Cronjob once every day at UTC 0400.
2+
- cron: name="Khronos CLI Daily" minute="0" hour="4" job="/khronos/bin/cli.js --queue khronos:queue:name --job '{}' --host {{ rabbit_host }}:{{ rabbit_port }} --username {{ rabbit_user }} --passwword {{ rabbit_password }} | tee -a /var/log/khronos_cron.log"

0 commit comments

Comments
 (0)