Skip to content

Commit dc0b7cc

Browse files
author
Christopher M. Neill
committed
run job as a npm job inside the dock
1 parent bfc543f commit dc0b7cc

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Run Cronjob once every day at UTC 0400.
2+
- name: "Put Khronos CLI job in place."
3+
sudo: yes
4+
cron:
5+
name="Khronos CLI Daily"
6+
minute="0"
7+
hour="4"
8+
## job="/khronos/bin/cli.js --queue khronos:queue:name --job '{}' --host {{ rabbit_host }}:{{ rabbit_port }} --username {{ rabbit_user }} --password {{ rabbit_password }} > /var/log/khronos_cron.log 2>&1"
9+
job="docker run khronos npm run cron > /var/log/khronos_cron.log 2>&1"

ansible/roles/khronos_crontab/tasks/main.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)